aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media/atomisp/i2c/gc2235.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-04-19 16:06:45 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-20 12:32:15 +0200
commitbdfe0beb95eebc864f341fd0c5e903672b90b1a2 (patch)
treecc56c0b573c272230683e1827add0fdc4a4c27c7 /drivers/staging/media/atomisp/i2c/gc2235.h
parentmedia: atomisp: fix several typos (diff)
downloadwireguard-linux-bdfe0beb95eebc864f341fd0c5e903672b90b1a2.tar.xz
wireguard-linux-bdfe0beb95eebc864f341fd0c5e903672b90b1a2.zip
media: atomisp: fix several coding style issues
Use checkpatch.pl --fix-inplace --strict to solve several coding style issues, manually reviewing the produced code and fixing some troubles caused by checkpatch. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c/gc2235.h')
-rw-r--r--drivers/staging/media/atomisp/i2c/gc2235.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/i2c/gc2235.h b/drivers/staging/media/atomisp/i2c/gc2235.h
index 54bf7812b27a..bb104de61af9 100644
--- a/drivers/staging/media/atomisp/i2c/gc2235.h
+++ b/drivers/staging/media/atomisp/i2c/gc2235.h
@@ -286,6 +286,7 @@ static struct gc2235_reg const gc2235_init_settings[] = {
{ GC2235_8BIT, 0xfe, 0x00 }, /* switch to P0 */
{ GC2235_TOK_TERM, 0, 0 }
};
+
/*
* Register settings for various resolution
*/
@@ -530,7 +531,6 @@ static struct gc2235_reg const gc2235_1616_1216_30fps[] = {
};
static struct gc2235_resolution gc2235_res_preview[] = {
-
{
.desc = "gc2235_1600_900_30fps",
.width = 1600,
@@ -579,6 +579,7 @@ static struct gc2235_resolution gc2235_res_preview[] = {
},
};
+
#define N_RES_PREVIEW (ARRAY_SIZE(gc2235_res_preview))
/*
@@ -634,6 +635,7 @@ static struct gc2235_resolution gc2235_res_still[] = {
},
};
+
#define N_RES_STILL (ARRAY_SIZE(gc2235_res_still))
static struct gc2235_resolution gc2235_res_video[] = {
@@ -669,6 +671,7 @@ static struct gc2235_resolution gc2235_res_video[] = {
},
};
+
#define N_RES_VIDEO (ARRAY_SIZE(gc2235_res_video))
#endif