V4L: Storage class should be before const qualifier (sn9c102)
authorTobias Klauser <tklauser@distanz.ch>
Mon, 21 Apr 2008 22:32:16 +0000 (22:32 +0000)
committerJesper Juhl <juhl@hera.kernel.org>
Mon, 21 Apr 2008 22:32:16 +0000 (22:32 +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/sn9c102/sn9c102_sensor.h

index 2d7d786b8430b7a5f236f191ca490d4679186667..2dc7c68694840cb006cd99a39c60d54e989a8e51 100644 (file)
@@ -126,7 +126,7 @@ extern int sn9c102_write_regs(struct sn9c102_device*, const u8 valreg[][2],
    Register adresses must be < 256.
 */
 #define sn9c102_write_const_regs(sn9c102_device, data...)                     \
-       ({ const static u8 _valreg[][2] = {data};                             \
+       ({ static const u8 _valreg[][2] = {data};                             \
        sn9c102_write_regs(sn9c102_device, _valreg, ARRAY_SIZE(_valreg)); })
 
 /*****************************************************************************/