Commit 9d19d966 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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

The spelling of maxpctksize and maxpcktsize is inconsistent, rename them
both to wMaxPacketSize instead.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220202104058.590312-1-colin.i.king@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 554237f2
...@@ -755,11 +755,11 @@ static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_o ...@@ -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) if (max_size_bw <= max_size_ep)
dev_dbg(dev, 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); speed_names[speed], dir, max_size_bw, bint);
else { else {
dev_warn(dev, 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); speed_names[speed], dir, max_size_bw, bint, max_size_ep);
max_size_bw = max_size_ep; max_size_bw = max_size_ep;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment