[media] adv7180: Consolidate video mode setting
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 23 Jan 2015 15:52:27 +0000 (12:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 13:46:33 +0000 (11:46 -0200)
commit3e35e33c086ca81e0576ad1ace22ca058d071b2c
tree8b644494f03eba09b1c65eaad878a523d89edb90
parentd5d51a827bb86103d4874a864f72674b281408ac
[media] adv7180: Consolidate video mode setting

We have basically the same code to set the video standard in init_device()
and adv7180_s_std(). Factor this out into a common helper function.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Federico Vaga <federico.vaga@gmail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7180.c