diff options
Diffstat (limited to 'drivers/media/i2c/soc_camera/mt9m001.c')
-rw-r--r-- | drivers/media/i2c/soc_camera/mt9m001.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/i2c/soc_camera/mt9m001.c b/drivers/media/i2c/soc_camera/mt9m001.c index 00583f5fd26b..cd71230c51a9 100644 --- a/drivers/media/i2c/soc_camera/mt9m001.c +++ b/drivers/media/i2c/soc_camera/mt9m001.c | |||
@@ -377,6 +377,14 @@ static int mt9m001_s_register(struct v4l2_subdev *sd, | |||
377 | } | 377 | } |
378 | #endif | 378 | #endif |
379 | 379 | ||
380 | static int mt9m001_s_power(struct v4l2_subdev *sd, int on) | ||
381 | { | ||
382 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
383 | struct soc_camera_link *icl = soc_camera_i2c_to_link(client); | ||
384 | |||
385 | return soc_camera_set_power(&client->dev, icl, on); | ||
386 | } | ||
387 | |||
380 | static int mt9m001_g_volatile_ctrl(struct v4l2_ctrl *ctrl) | 388 | static int mt9m001_g_volatile_ctrl(struct v4l2_ctrl *ctrl) |
381 | { | 389 | { |
382 | struct mt9m001 *mt9m001 = container_of(ctrl->handler, | 390 | struct mt9m001 *mt9m001 = container_of(ctrl->handler, |
@@ -566,6 +574,7 @@ static struct v4l2_subdev_core_ops mt9m001_subdev_core_ops = { | |||
566 | .g_register = mt9m001_g_register, | 574 | .g_register = mt9m001_g_register, |
567 | .s_register = mt9m001_s_register, | 575 | .s_register = mt9m001_s_register, |
568 | #endif | 576 | #endif |
577 | .s_power = mt9m001_s_power, | ||
569 | }; | 578 | }; |
570 | 579 | ||
571 | static int mt9m001_enum_fmt(struct v4l2_subdev *sd, unsigned int index, | 580 | static int mt9m001_enum_fmt(struct v4l2_subdev *sd, unsigned int index, |