Commit 14bfca03 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: DVB

drivers/media/dvb/frontends/ves1820.c: In function `ves1820_setup_reg0':
drivers/media/dvb/frontends/ves1820.c:244: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:244: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c: In function `ves1820_attach':
drivers/media/dvb/frontends/ves1820.c:541: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:541: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:544: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:544: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:545: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:545: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:546: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:546: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:547: error: invalid lvalue in assignment
drivers/media/dvb/frontends/ves1820.c:547: error: invalid lvalue in assignment
parent 8c6d5497
......@@ -48,23 +48,31 @@ static int verbose;
*/
#define SET_PWM(data,pwm) do { \
(long) data &= ~0xff; \
(long) data |= pwm; \
long d = (long)data; \
d &= ~0xff; \
d |= pwm; \
data = (void *)d; \
} while (0)
#define SET_REG0(data,reg0) do { \
(long) data &= ~(0xff << 8); \
(long) data |= reg0 << 8; \
long d = (long)data; \
d &= ~(0xff << 8); \
d |= reg0 << 8; \
data = (void *)d; \
} while (0)
#define SET_TUNER(data,type) do { \
(long) data &= ~(0xff << 16); \
(long) data |= type << 16; \
long d = (long)data; \
d &= ~(0xff << 16); \
d |= type << 16; \
data = (void *)d; \
} while (0)
#define SET_DEMOD_ADDR(data,type) do { \
(long) data &= ~(0xff << 24); \
(long) data |= type << 24; \
long d = (long)data; \
d &= ~(0xff << 24); \
d |= type << 24; \
data = (void *)d; \
} while (0)
#define GET_PWM(data) ((u8) ((long) data & 0xff))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment