Skip to content

Commit

Permalink
usb: gadget: f_uac2: change maxpctksize/maxpcktsize to wMaxPacketSize
Browse files Browse the repository at this point in the history
The spelling of maxpctksize and maxpcktsize is inconsistent, rename them
both to wMaxPacketSize instead.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220202104058.590312-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Feb 4, 2022
1 parent 554237f commit 9d19d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/function/f_uac2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d19d96

Please sign in to comment.