]> git.baikalelectronics.ru Git - kernel.git/commit
media: uvcvideo: Undup use uvc_endpoint_max_bpi() code
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 1 Apr 2022 17:24:37 +0000 (19:24 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 8 May 2022 05:10:32 +0000 (07:10 +0200)
commit388f7b42e90a620f5d3fe96c3f4133b7d139b2a0
tree2bc9e5ae3d5ef335297cf2c9e69b7fa54c99eae8
parenta444dcd3eb6b4392dc14c92f6aba6494bde66b54
media: uvcvideo: Undup use uvc_endpoint_max_bpi() code

Replace manual decoding of psize in uvc_parse_streaming(), with the code
from uvc_endpoint_max_bpi(). It also handles usb3 devices.

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_driver.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h