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 (sn9c102)

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
22d56fce c81010bf

+1 -1
+1 -1
drivers/media/video/sn9c102/sn9c102_sensor.h
··· 126 126 Register adresses must be < 256. 127 127 */ 128 128 #define sn9c102_write_const_regs(sn9c102_device, data...) \ 129 - ({ const static u8 _valreg[][2] = {data}; \ 129 + ({ static const u8 _valreg[][2] = {data}; \ 130 130 sn9c102_write_regs(sn9c102_device, _valreg, ARRAY_SIZE(_valreg)); }) 131 131 132 132 /*****************************************************************************/