media: staging: atomisp: gc2235: fix sparse warning: missing static
authorGuillermo O. Freschi <kedrot@gmail.com>
Tue, 4 Jul 2017 20:46:43 +0000 (16:46 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 20:21:36 +0000 (16:21 -0400)
Several local use structs were missing declarations. Added static
qualifier to clean up Sparse warning.

Signed-off-by: Guillermo O. Freschi <kedrot@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/i2c/gc2235.c
drivers/staging/media/atomisp/i2c/gc2235.h

index 50f431729b6c120278b40fdb27581a2c51eacda9..04e69dd5fdb120e38d2e94135625abcef3ad60d2 100644 (file)
@@ -480,7 +480,7 @@ static const struct v4l2_ctrl_ops ctrl_ops = {
        .g_volatile_ctrl = gc2235_g_volatile_ctrl
 };
 
-struct v4l2_ctrl_config gc2235_controls[] = {
+static struct v4l2_ctrl_config gc2235_controls[] = {
        {
         .ops = &ctrl_ops,
         .id = V4L2_CID_EXPOSURE_ABSOLUTE,
index ccbc757045a5560d53fee7ff6349b1ddfe9f16c9..ae8f09dbe5c728eef1ce00e9c64c24dcda9df0fa 100644 (file)
@@ -530,7 +530,7 @@ static struct gc2235_reg const gc2235_1616_1216_30fps[] = {
        { GC2235_TOK_TERM, 0, 0 }
 };
 
-struct gc2235_resolution gc2235_res_preview[] = {
+static struct gc2235_resolution gc2235_res_preview[] = {
 
        {
                .desc = "gc2235_1600_900_30fps",
@@ -582,7 +582,7 @@ struct gc2235_resolution gc2235_res_preview[] = {
 };
 #define N_RES_PREVIEW (ARRAY_SIZE(gc2235_res_preview))
 
-struct gc2235_resolution gc2235_res_still[] = {
+static struct gc2235_resolution gc2235_res_still[] = {
        {
                .desc = "gc2235_1600_900_30fps",
                .width = 1600,
@@ -632,7 +632,7 @@ struct gc2235_resolution gc2235_res_still[] = {
 };
 #define N_RES_STILL (ARRAY_SIZE(gc2235_res_still))
 
-struct gc2235_resolution gc2235_res_video[] = {
+static struct gc2235_resolution gc2235_res_video[] = {
        {
                .desc = "gc2235_1296_736_30fps",
                .width = 1296,