提交 c81010bf 编写于 作者: T Tobias Klauser 提交者: Jesper Juhl

V4L: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
上级 b0cdb5e1
...@@ -126,7 +126,7 @@ set_v4l_control(struct inode *inode, ...@@ -126,7 +126,7 @@ set_v4l_control(struct inode *inode,
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
const static unsigned int palette2pixelformat[] = { static const unsigned int palette2pixelformat[] = {
[VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY, [VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY,
[VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555, [VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555,
[VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565, [VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册