aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/soc_camera.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-04-18 17:35:28 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-31 02:30:56 -0400
commitd3f884a70938b1776ba44c7b6c82f3c3fd54ccbd (patch)
tree1d243299ec9e3202c496669c30cf99c3a67c5e8a /include/media/soc_camera.h
parentb1cbab05d9adbd8d6d7afc822b809c5d47c46f94 (diff)
[media] soc-camera: switch to using the new struct v4l2_subdev_platform_data
This prepares soc-camera to use struct v4l2_subdev_platform_data for its subdevice-facing API, which would allow subdevice driver re-use. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r--include/media/soc_camera.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 34d2414f2b8c..2bb418346b1f 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -146,10 +146,6 @@ struct soc_camera_subdev_desc {
146 /* sensor driver private platform data */ 146 /* sensor driver private platform data */
147 void *drv_priv; 147 void *drv_priv;
148 148
149 /* Optional regulators that have to be managed on power on/off events */
150 struct regulator_bulk_data *regulators;
151 int num_regulators;
152
153 /* Optional callbacks to power on or off and reset the sensor */ 149 /* Optional callbacks to power on or off and reset the sensor */
154 int (*power)(struct device *, int); 150 int (*power)(struct device *, int);
155 int (*reset)(struct device *); 151 int (*reset)(struct device *);
@@ -162,6 +158,9 @@ struct soc_camera_subdev_desc {
162 int (*set_bus_param)(struct soc_camera_subdev_desc *, unsigned long flags); 158 int (*set_bus_param)(struct soc_camera_subdev_desc *, unsigned long flags);
163 unsigned long (*query_bus_param)(struct soc_camera_subdev_desc *); 159 unsigned long (*query_bus_param)(struct soc_camera_subdev_desc *);
164 void (*free_bus)(struct soc_camera_subdev_desc *); 160 void (*free_bus)(struct soc_camera_subdev_desc *);
161
162 /* Optional regulators that have to be managed on power on/off events */
163 struct v4l2_subdev_platform_data sd_pdata;
165}; 164};
166 165
167struct soc_camera_host_desc { 166struct soc_camera_host_desc {
@@ -202,10 +201,6 @@ struct soc_camera_link {
202 201
203 void *priv; 202 void *priv;
204 203
205 /* Optional regulators that have to be managed on power on/off events */
206 struct regulator_bulk_data *regulators;
207 int num_regulators;
208
209 /* Optional callbacks to power on or off and reset the sensor */ 204 /* Optional callbacks to power on or off and reset the sensor */
210 int (*power)(struct device *, int); 205 int (*power)(struct device *, int);
211 int (*reset)(struct device *); 206 int (*reset)(struct device *);
@@ -218,6 +213,12 @@ struct soc_camera_link {
218 unsigned long (*query_bus_param)(struct soc_camera_link *); 213 unsigned long (*query_bus_param)(struct soc_camera_link *);
219 void (*free_bus)(struct soc_camera_link *); 214 void (*free_bus)(struct soc_camera_link *);
220 215
216 /* Optional regulators that have to be managed on power on/off events */
217 struct regulator_bulk_data *regulators;
218 int num_regulators;
219
220 void *host_priv;
221
221 /* 222 /*
222 * Host part - keep at bottom and compatible to 223 * Host part - keep at bottom and compatible to
223 * struct soc_camera_host_desc 224 * struct soc_camera_host_desc