media: ov7670: hook s_power onto v4l2 core
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 15 Jan 2019 08:54:45 +0000 (06:54 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 Jan 2019 12:44:00 +0000 (10:44 -0200)
commit3d6a8fe256059034ddd592f1e169da5ff9d28d7e
tree4c2f7d936a8f844aeb58cf0b4772c971e4902414
parent40012cd5ecaa48ad7bf36cb477d4d6f033639d0e
media: ov7670: hook s_power onto v4l2 core

The commit 71862f63f351 ("media: ov7670: Add the ov7670_s_power function")
added a power control routing. However, it was not good enough to use as
a s_power() callback: it merely flipped on the power GPIOs without
restoring the register settings.

Fix this now and register an actual power callback.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov7670.c