ths7303: Declare as static a private function
PATCH v2 1/1 ths7303: Declare as static a private function
git grep shows that the function is only called from ths7303.c
Fix this build warning:
CC drivers/media/i2c/ths7303.odrivers/media/i2c/ths7303.c:86:5: warning: no previous prototype for ‘ths7303_setval’ [-Wmissing-prototypes]
int ths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode)
^
---
v2: Comment by Laurent Pinchart
Align parameters
drivers/media/i2c/ths7303.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/i2c/ths7303.c +2 -1
@@ -83,7 +83,8 @@ static int ths7303_write(struct v4l2_subdev *sd, u8 reg, u8 val) }/* following function is used to set ths7303 */ -int ths7303_setval (struct v4l2_subdev *sd,enum ths7303_filter_mode mode) +static int ths7303_setval (struct v4l2_subdev *sd, +enum ths7303_filter_mode mode) {struct i2c_client *client =v4l2_get_subdevdata (sd);struct ths7303_state *state =to_state (sd);
Signature · 1 line
1.8.4.rc3
Hi Ricardo,
Thank you for the patch.
Quoted 11 lines · On Wednesday 06 November 2013 15:40:18 Ricardo Ribalda Delgado wrote:
git grep shows that the function is only called from
ths7303.cFix this build warning:
CC
drivers/media/i2c/ths7303.odrivers/media/i2c/ths7303.c:86:5: warning: no previous prototype for ‘ths7303_setval’ [-Wmissing-prototypes] intths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode)^Signed-off-by Ricardo Ribalda Delgado <[email protected]>Acked-by Laurent Pinchart <[email protected]>
Confirmed :-)
Quoted 21 lines
---
v2: Comment by Laurent Pinchart
Align parametersdrivers/media/i2c/ths7303.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/media/i2c/ths7303.c +2
-1@@ -83,7 +83,8 @@ static int ths7303_write(struct v4l2_subdev *sd, u8 reg, u8 val) }/* following function is used to set ths7303 */ -int ths7303_setval (struct v4l2_subdev *sd,enum ths7303_filter_mode mode) +static int ths7303_setval (struct v4l2_subdev *sd, +enum ths7303_filter_mode mode) {struct i2c_client *client =v4l2_get_subdevdata (sd);struct ths7303_state *state =to_state (sd);
Signature · 3 lines
Regards, Laurent Pinchart
Hi Ricardo,
Thanks for the patch.
Quoted 11 lines · Ricardo Ribalda Delgado
git grep shows that the function is only called from
ths7303.cFix this build warning:
CC
drivers/media/i2c/ths7303.odrivers/media/i2c/ths7303.c:86:5: warning: no previous prototype for ‘ths7303_setval’ [-Wmissing-prototypes]
intths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode)^Signed-off-by Ricardo Ribalda Delgado <[email protected]>Acked-by Laurent Pinchart <[email protected]>
Regards,
--Prabhakar Lad