summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>2010-12-02 07:43:37 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-30 22:29:37 -0200
commit96e442c1b2ef2ba9476e5da2607ba666ce09664d (patch)
treed0bcf51f63ff89b1740ebd6764492ac5db7e7be6 /include/media
parent3153ac9c6208892ee237caccdbe2290f8247e236 (diff)
downloadblackbird-op-linux-96e442c1b2ef2ba9476e5da2607ba666ce09664d.tar.gz
blackbird-op-linux-96e442c1b2ef2ba9476e5da2607ba666ce09664d.zip
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
In certain machines, camera devices are supplied directly by a number of regulators. This patch add the ability to drive these regulators directly by the soc_camera driver. Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 86e3631764ef..9386db829fb7 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -97,6 +97,7 @@ struct soc_camera_host_ops {
#define SOCAM_SENSOR_INVERT_DATA (1 << 4)
struct i2c_board_info;
+struct regulator_bulk_data;
struct soc_camera_link {
/* Camera bus id, used to match a camera and a bus */
@@ -108,6 +109,10 @@ struct soc_camera_link {
const char *module_name;
void *priv;
+ /* Optional regulators that have to be managed on power on/off events */
+ struct regulator_bulk_data *regulators;
+ int num_regulators;
+
/*
* For non-I2C devices platform platform has to provide methods to
* add a device to the system and to remove
OpenPOWER on IntegriCloud