[media] staging: atomisp: lm3554: fix sparse warnings(was not declared. Should it...
authorChen Guanqiao <chen.chenchacha@foxmail.com>
Sun, 28 May 2017 18:06:41 +0000 (15:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:50:22 +0000 (12:50 -0300)
Fix "symbol 'xxxxxxx' was not declared. Should it be static?" sparse warnings.

Signed-off-by: Chen Guanqiao <chen.chenchacha@foxmail.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/i2c/lm3554.c

index dd9c9c3ffff722b21c2204dc0fd1a76741338727..2b170c07aaba71c98e28a70753c9199eb85b8100 100644 (file)
@@ -497,7 +497,7 @@ static const struct v4l2_ctrl_ops ctrl_ops = {
        .g_volatile_ctrl = lm3554_g_volatile_ctrl
 };
 
-struct v4l2_ctrl_config lm3554_controls[] = {
+static const struct v4l2_ctrl_config lm3554_controls[] = {
        {
         .ops = &ctrl_ops,
         .id = V4L2_CID_FLASH_TIMEOUT,
@@ -825,7 +825,7 @@ static int lm3554_gpio_uninit(struct i2c_client *client)
        return 0;
 }
 
-void *lm3554_platform_data_func(struct i2c_client *client)
+static void *lm3554_platform_data_func(struct i2c_client *client)
 {
        static struct lm3554_platform_data platform_data;