diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-26 14:36:34 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-26 14:36:34 -0300 |
commit | e4f64ff17a1852288ab51407f72731781e8bbfe6 (patch) | |
tree | 3d16d535585cdc68e1e05d3bf042882359760a47 /linux/drivers/media/dvb/frontends | |
parent | 38289d94bcb5008e33c10db7a29d4e6c4d34cb8c (diff) | |
download | mediapointer-dvb-s2-e4f64ff17a1852288ab51407f72731781e8bbfe6.tar.gz mediapointer-dvb-s2-e4f64ff17a1852288ab51407f72731781e8bbfe6.tar.bz2 |
backported kernel changeset cbfa6f2a684e9fb7d6a5025b3893b8f93112683c
From: Tobias Klauser <tklauser@distanz.ch>
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.
kernel-sync:
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/or51132.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/or51132.c b/linux/drivers/media/dvb/frontends/or51132.c index 8a64cb43e..c7b5785f8 100644 --- a/linux/drivers/media/dvb/frontends/or51132.c +++ b/linux/drivers/media/dvb/frontends/or51132.c @@ -91,7 +91,7 @@ static int or51132_writebuf(struct or51132_state *state, const u8 *buf, int len) Less code and more efficient that loading a buffer on the stack with the bytes to send and then calling or51132_writebuf() on that. */ #define or51132_writebytes(state, data...) \ - ({ const static u8 _data[] = {data}; \ + ({ static const u8 _data[] = {data}; \ or51132_writebuf(state, _data, sizeof(_data)); }) /* Read data from demod into buffer. Returns 0 on success. */ @@ -132,7 +132,7 @@ static int or51132_readreg(struct or51132_state *state, u8 reg) static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) { struct or51132_state* state = fe->demodulator_priv; - const static u8 run_buf[] = {0x7F,0x01}; + static const u8 run_buf[] = {0x7F,0x01}; u8 rec_buf[8]; u32 firmwareAsize, firmwareBsize; int i,ret; |