]> git.baikalelectronics.ru Git - kernel.git/commit
media: uvcvideo: Simplify uvc_endpoint_max_bpi()
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 1 Apr 2022 17:24:36 +0000 (19:24 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 8 May 2022 05:10:06 +0000 (07:10 +0200)
commita444dcd3eb6b4392dc14c92f6aba6494bde66b54
treefe2cc651b57be448eccf5a71070be491e2d994fe
parent5216e278a7b064e8c4e8702925ecd67bce9046dd
media: uvcvideo: Simplify uvc_endpoint_max_bpi()

The case USB_SPEED_WIRELESS and the default one were doing the same.

Also, make always use of usb_endpoint_maxp_mult, as it should have a
sane value, even for LOW speed and WIRELESS.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/uvc/uvc_video.c