media: ov7670: Add the ov7670_s_power function
authorWenyou Yang <wenyou.yang@microchip.com>
Mon, 16 Oct 2017 03:14:27 +0000 (05:14 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 14:11:46 +0000 (16:11 +0200)
commit71862f63f351078560a7ce35c6c2e2ca16750374
tree5be4654164b82f8225a9078f802a6db75fe73e5e
parentc0662dd4e7a407a5ac79cc6ca4d1116bf03d3731
media: ov7670: Add the ov7670_s_power function

Add the ov7670_s_power function which is responsible for
manipulating the power dowm mode through the PWDN pin and the reset
operation through the RESET pin, and keep it powered at all times.

[sakari.ailus@linux.intel.com: set pwdn_gpio direction only once]
Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/ov7670.c