diff options
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index d865dcf9879f..982bfc948414 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -254,6 +254,16 @@ unsigned long soc_camera_apply_sensor_flags(struct soc_camera_link *icl, | |||
254 | unsigned long soc_camera_apply_board_flags(struct soc_camera_link *icl, | 254 | unsigned long soc_camera_apply_board_flags(struct soc_camera_link *icl, |
255 | const struct v4l2_mbus_config *cfg); | 255 | const struct v4l2_mbus_config *cfg); |
256 | 256 | ||
257 | int soc_camera_power_on(struct device *dev, struct soc_camera_link *icl); | ||
258 | int soc_camera_power_off(struct device *dev, struct soc_camera_link *icl); | ||
259 | |||
260 | static inline int soc_camera_set_power(struct device *dev, | ||
261 | struct soc_camera_link *icl, bool on) | ||
262 | { | ||
263 | return on ? soc_camera_power_on(dev, icl) | ||
264 | : soc_camera_power_off(dev, icl); | ||
265 | } | ||
266 | |||
257 | /* This is only temporary here - until v4l2-subdev begins to link to video_device */ | 267 | /* This is only temporary here - until v4l2-subdev begins to link to video_device */ |
258 | #include <linux/i2c.h> | 268 | #include <linux/i2c.h> |
259 | static inline struct video_device *soc_camera_i2c_to_vdev(const struct i2c_client *client) | 269 | static inline struct video_device *soc_camera_i2c_to_vdev(const struct i2c_client *client) |