aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-04-21 18:27:50 -0400
committerJesper Juhl <juhl@hera.kernel.org>2008-04-21 18:27:50 -0400
commitcbfa6f2a684e9fb7d6a5025b3893b8f93112683c (patch)
tree4a91c873df8c9cf12b64835724c052f88db6b9bd /drivers
parentb1d18dc06ba6b9056f95aaf1f8c464830846f87f (diff)
DVB: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/or51132.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c
index 1d2d28ce823d..8ffb8daca031 100644
--- a/drivers/media/dvb/frontends/or51132.c
+++ b/drivers/media/dvb/frontends/or51132.c
@@ -91,7 +91,7 @@ static int or51132_writebuf(struct or51132_state *state, const u8 *buf, int len)
91 Less code and more efficient that loading a buffer on the stack with 91 Less code and more efficient that loading a buffer on the stack with
92 the bytes to send and then calling or51132_writebuf() on that. */ 92 the bytes to send and then calling or51132_writebuf() on that. */
93#define or51132_writebytes(state, data...) \ 93#define or51132_writebytes(state, data...) \
94 ({ const static u8 _data[] = {data}; \ 94 ({ static const u8 _data[] = {data}; \
95 or51132_writebuf(state, _data, sizeof(_data)); }) 95 or51132_writebuf(state, _data, sizeof(_data)); })
96 96
97/* Read data from demod into buffer. Returns 0 on success. */ 97/* Read data from demod into buffer. Returns 0 on success. */
@@ -132,7 +132,7 @@ static int or51132_readreg(struct or51132_state *state, u8 reg)
132static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) 132static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw)
133{ 133{
134 struct or51132_state* state = fe->demodulator_priv; 134 struct or51132_state* state = fe->demodulator_priv;
135 const static u8 run_buf[] = {0x7F,0x01}; 135 static const u8 run_buf[] = {0x7F,0x01};
136 u8 rec_buf[8]; 136 u8 rec_buf[8];
137 u32 firmwareAsize, firmwareBsize; 137 u32 firmwareAsize, firmwareBsize;
138 int i,ret; 138 int i,ret;