Commit 1b3d5f2a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: video-i2c: get rid of two gcc warnings

After adding this driver, gcc complains with:

drivers/media/i2c/video-i2c.c:55:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
 const static struct v4l2_fmtdesc amg88xx_format = {
 ^~~~~
drivers/media/i2c/video-i2c.c:59:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
 const static struct v4l2_frmsize_discrete amg88xx_size = {
 ^~~~~
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent d8555fd2
...@@ -52,11 +52,11 @@ struct video_i2c_data { ...@@ -52,11 +52,11 @@ struct video_i2c_data {
struct list_head vid_cap_active; struct list_head vid_cap_active;
}; };
const static struct v4l2_fmtdesc amg88xx_format = { static const struct v4l2_fmtdesc amg88xx_format = {
.pixelformat = V4L2_PIX_FMT_Y12, .pixelformat = V4L2_PIX_FMT_Y12,
}; };
const static struct v4l2_frmsize_discrete amg88xx_size = { static const struct v4l2_frmsize_discrete amg88xx_size = {
.width = 8, .width = 8,
.height = 8, .height = 8,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment