[media] adv7604: Don't ignore pad number in subdev DV timings pad operations
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 24 May 2016 12:09:33 +0000 (09:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 18:33:54 +0000 (15:33 -0300)
commit6519c3d7b8621c9f4333c98ed4b703029b51ba79
treecda473768308d7a3fd4d18234260f424023b3696
parent1ca830b110cd9d067327571f1136fdbf1ef2b4d3
[media] adv7604: Don't ignore pad number in subdev DV timings pad operations

The dv_timings_cap() and enum_dv_timings() pad operations take a pad
number as an input argument and return the DV timings capabilities and
list of supported DV timings for that pad.

Commit bd3e275f3ec0 ("[media] media: i2c: adv7604: Use v4l2-dv-timings
helpers") broke this as it started ignoring the pad number, always
returning the information associated with the currently selected input.
Fix it.

Fixes: bd3e275f3ec0 ("[media] media: i2c: adv7604: Use v4l2-dv-timings helpers")

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v4.6
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7604.c