[media] media: ti-vpe: cal: Fix unreachable code in enum_frame_interval
authorBenoit Parrot <bparrot@ti.com>
Fri, 19 Feb 2016 19:24:45 +0000 (17:24 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:17:07 +0000 (07:17 -0300)
commit7f67c587cfd9d27cfcaa22a545f6a999432aa023
treee1e538d5b8835fa23cd5876defbe764f536619b7
parente76bea9abd14a3a3af102fe30c5e9dd1b2e44d72
[media] media: ti-vpe: cal: Fix unreachable code in enum_frame_interval

As reported, the current cal_enum_frameintervals() is confusing
and does not have the intended behavior.
Fix this by re-implementing to properly propagate the enum_frame_interval
request to the subdevice.

[mchehab@osg.samsung.com: remove a now bogus "ret = 0" statement]
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/ti-vpe/cal.c