Skip to contentSkip to conversation

usb: gadget: f_uac2: change maxpctksize/maxpcktsize to wMaxPacketSize

PATCH In review Colin Ian King 2 participants 2 messages Feb 2, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: gadget: f_uac2: change maxpctksize/maxpcktsize to wMaxPacketSize

The spelling of maxpctksize and maxpcktsize is inconsistent, rename them both to wMaxPacketSize instead.

---
V2: change both strings to wMaxPacketSize

---
 drivers/usb/gadget/function/f_uac2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/function/f_uac2.c +2 -2
index f2237bcdba7c..2bc63e577b3b 100644
@@ -755,11 +755,11 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o
 
 	if (max_size_bw <= max_size_ep)
 		dev_dbg(dev,
-			"%s %s: Would use maxpctksize %d and bInterval %d\n",
+			"%s %s: Would use wMaxPacketSize %d and bInterval %d\n",
 			speed_names[speed], dir, max_size_bw, bint);
 	else {
 		dev_warn(dev,
-			"%s %s: Req. maxpcktsize %d at bInterval %d > max ISOC %d, may drop data!\n",
+			"%s %s: Req. wMaxPacketSize %d at bInterval %d > max ISOC %d, may drop data!\n",
 			speed_names[speed], dir, max_size_bw, bint, max_size_ep);
 		max_size_bw = max_size_ep;
 	}
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Colin Ian King

The spelling of maxpctksize and maxpcktsize is inconsistent, rename them both to wMaxPacketSize instead.

---
V2: change both strings to wMaxPacketSize

[hmm]

drivers/usb/gadget/function/f_uac2.c

Quoted 1 line
drivers/usb/gadget/function/f_uac2.c +0 -0

[]

drivers/usb/gadget/function/f_uac2.c static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o · line 763

Quoted 12 lines
drivers/usb/gadget/function/f_uac2.c +2 -2
@@ -755,11 +755,11 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o
 
 	if (max_size_bw <= max_size_ep)
 		dev_dbg(dev,
-			"%s %s: Would use maxpctksize %d and bInterval %d\n",
+			"%s %s: Would use wMaxPacketSize %d and bInterval %d\n",
 			speed_names[speed], dir, max_size_bw, bint);
 	else {
 		dev_warn(dev,
-			"%s %s: Req. maxpcktsize %d at bInterval %d > max ISOC %d, may drop data!\n",
+			"%s %s: Req. wMaxPacketSize %d at bInterval %d > max ISOC %d, may drop data!\n",
 			speed_names[speed], dir, max_size_bw, bint, max_size_ep);

better still would be to align to the open parenthesis