Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] 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.o
drivers/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)
^

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Ricardo Ribalda and committed by
Mauro Carvalho Chehab
06eb891e bdee6bdb

+2 -1
+2 -1
drivers/media/i2c/ths7303.c
··· 83 83 } 84 84 85 85 /* following function is used to set ths7303 */ 86 - int ths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode) 86 + static int ths7303_setval(struct v4l2_subdev *sd, 87 + enum ths7303_filter_mode mode) 87 88 { 88 89 struct i2c_client *client = v4l2_get_subdevdata(sd); 89 90 struct ths7303_state *state = to_state(sd);