]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Mon, 21 Apr 2008 22:30:21 +0000 (22:30 +0000)
committerJesper Juhl <juhl@hera.kernel.org>
Mon, 21 Apr 2008 22:30:21 +0000 (22:30 +0000)
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>
drivers/media/video/v4l1-compat.c

index 50e1ff9f2be59181c9a67c8d642317870aac36cd..e3ac5e6860758c6e6a7e1bd83ef11eadd4b9f6ad 100644 (file)
@@ -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_RGB555]  = V4L2_PIX_FMT_RGB555,
        [VIDEO_PALETTE_RGB565]  = V4L2_PIX_FMT_RGB565,