mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
FROMGIT: usb: gadget: f_uac2: change maxpctksize/maxpcktsize to wMaxPacketSize
The spelling of maxpctksize and maxpcktsize is inconsistent, rename them
both to wMaxPacketSize instead.
Change-Id: Idc99772d903e2bff066e5dc32feb20ea9915ea90
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>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9d19d966b4
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
This commit is contained in:
committed by
Tao Huang
parent
673a45c94c
commit
f41d7747cc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user