diff options
Diffstat (limited to 'drivers/media/video/ov772x.c')
-rw-r--r-- | drivers/media/video/ov772x.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 54b736fcc07a..3c9e0ba974e9 100644 --- a/drivers/media/video/ov772x.c +++ b/drivers/media/video/ov772x.c | |||
@@ -724,7 +724,7 @@ static unsigned long ov772x_query_bus_param(struct soc_camera_device *icd) | |||
724 | } | 724 | } |
725 | 725 | ||
726 | static int ov772x_get_chip_id(struct soc_camera_device *icd, | 726 | static int ov772x_get_chip_id(struct soc_camera_device *icd, |
727 | struct v4l2_chip_ident *id) | 727 | struct v4l2_dbg_chip_ident *id) |
728 | { | 728 | { |
729 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); | 729 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); |
730 | 730 | ||
@@ -736,11 +736,12 @@ static int ov772x_get_chip_id(struct soc_camera_device *icd, | |||
736 | 736 | ||
737 | #ifdef CONFIG_VIDEO_ADV_DEBUG | 737 | #ifdef CONFIG_VIDEO_ADV_DEBUG |
738 | static int ov772x_get_register(struct soc_camera_device *icd, | 738 | static int ov772x_get_register(struct soc_camera_device *icd, |
739 | struct v4l2_register *reg) | 739 | struct v4l2_dbg_register *reg) |
740 | { | 740 | { |
741 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); | 741 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); |
742 | int ret; | 742 | int ret; |
743 | 743 | ||
744 | reg->size = 1; | ||
744 | if (reg->reg > 0xff) | 745 | if (reg->reg > 0xff) |
745 | return -EINVAL; | 746 | return -EINVAL; |
746 | 747 | ||
@@ -754,7 +755,7 @@ static int ov772x_get_register(struct soc_camera_device *icd, | |||
754 | } | 755 | } |
755 | 756 | ||
756 | static int ov772x_set_register(struct soc_camera_device *icd, | 757 | static int ov772x_set_register(struct soc_camera_device *icd, |
757 | struct v4l2_register *reg) | 758 | struct v4l2_dbg_register *reg) |
758 | { | 759 | { |
759 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); | 760 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); |
760 | 761 | ||