media: pvrusb2: correctly return V4L2_PIX_FMT_MPEG in enum_fmt
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 13 Dec 2017 23:44:42 +0000 (18:44 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 20:01:23 +0000 (15:01 -0500)
commitc4b72ee8acce3d1e2a2fe7398aac9567deebf837
tree3eab6d08a404f42e4716e384267183052d0dc344
parent327553ae8eb87a66b2c9e041e890ea66f21009b2
media: pvrusb2: correctly return V4L2_PIX_FMT_MPEG in enum_fmt

The pvrusb2 code appears to have a some old workaround code for xawtv that causes a
WARN() due to an unrecognized pixelformat 0 in v4l2_ioctl.c.

Since all other MPEG drivers fill this in correctly, it is a safe assumption that
this particular problem no longer exists.

While I'm at it, clean up the code a bit.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c