media: gspca: support multiple pixel formats in ENUM_FRAMEINTERVALS
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 14 Dec 2018 16:40:25 +0000 (11:40 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 18:50:30 +0000 (13:50 -0500)
commitfc78e0b2471d6efa19f896d7c93a8ecda9913ddd
treed420739c6769c0feb9ef289b7840ed6b58a4157d
parent4d4abf064d676dcc27952ed90f4f50d7087318c7
media: gspca: support multiple pixel formats in ENUM_FRAMEINTERVALS

If a driver supports multiple pixel formats with the same frame size,
ENUM_FRAMEINTERVALS will currently only work for the first pixel format.
Fix this by adding pixelformat support to wxh_to_mode().

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/gspca/gspca.c