diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-11-29 18:01:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-10 13:03:36 -0500 |
commit | 7b2f25c0b073479fa1afea3ae65dd9d9f0da5586 (patch) | |
tree | ab40f53f8dc3c07da69fb67772a8e8a38a219439 /drivers/media/i2c/vs6624.c | |
parent | cdfe3e352b6d93d74a46453d28138e5a5bc95aee (diff) |
[media] v4l: vs6624: Fix warning due to unused function
vs6624_read() is only called in the conditionally-compiled
vs6624_g_register() function. Make the former conditionally-compiled as
well to silence build warnings.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c/vs6624.c')
-rw-r--r-- | drivers/media/i2c/vs6624.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c index 25bdd9312fea..23f4f65fccd7 100644 --- a/drivers/media/i2c/vs6624.c +++ b/drivers/media/i2c/vs6624.c | |||
@@ -503,6 +503,7 @@ static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) | |||
503 | return &container_of(ctrl->handler, struct vs6624, hdl)->sd; | 503 | return &container_of(ctrl->handler, struct vs6624, hdl)->sd; |
504 | } | 504 | } |
505 | 505 | ||
506 | #ifdef CONFIG_VIDEO_ADV_DEBUG | ||
506 | static int vs6624_read(struct v4l2_subdev *sd, u16 index) | 507 | static int vs6624_read(struct v4l2_subdev *sd, u16 index) |
507 | { | 508 | { |
508 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 509 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
@@ -515,6 +516,7 @@ static int vs6624_read(struct v4l2_subdev *sd, u16 index) | |||
515 | 516 | ||
516 | return buf[0]; | 517 | return buf[0]; |
517 | } | 518 | } |
519 | #endif | ||
518 | 520 | ||
519 | static int vs6624_write(struct v4l2_subdev *sd, u16 index, | 521 | static int vs6624_write(struct v4l2_subdev *sd, u16 index, |
520 | u8 value) | 522 | u8 value) |