Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>

authored by

Tobias Klauser and committed by
Jesper Juhl
c81010bf b0cdb5e1

+1 -1
+1 -1
drivers/media/video/v4l1-compat.c
··· 126 126 127 127 /* ----------------------------------------------------------------- */ 128 128 129 - const static unsigned int palette2pixelformat[] = { 129 + static const unsigned int palette2pixelformat[] = { 130 130 [VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY, 131 131 [VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555, 132 132 [VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565,