summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/ves1820.c
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-05-19 12:04:21 +0000
committerHolger Waechtler <devnull@localhost>2003-05-19 12:04:21 +0000
commit0ddbcc53cfc24906733be067ed28f27ae2faf4ce (patch)
treee3789e3d2e5e80048b4f85aa8f719c2615cd93c5 /linux/drivers/media/dvb/frontends/ves1820.c
parent75744f0a2b8dbd7671918fb171138c8cbaa8bfdf (diff)
downloadmediapointer-dvb-s2-0ddbcc53cfc24906733be067ed28f27ae2faf4ce.tar.gz
mediapointer-dvb-s2-0ddbcc53cfc24906733be067ed28f27ae2faf4ce.tar.bz2
more 64bit compile time warning fixes
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r--linux/drivers/media/dvb/frontends/ves1820.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c
index 24223d583..f9f1ced87 100644
--- a/linux/drivers/media/dvb/frontends/ves1820.c
+++ b/linux/drivers/media/dvb/frontends/ves1820.c
@@ -43,29 +43,29 @@
*/
#define SET_PWM(data,pwm) do { \
- (int) data &= ~0xff; \
- (int) data |= pwm; \
+ (long) data &= ~0xff; \
+ (long) data |= pwm; \
} while (0)
#define SET_REG0(data,reg0) do { \
- (int) data &= ~(0xff << 8); \
- (int) data |= reg0 << 8; \
+ (long) data &= ~(0xff << 8); \
+ (long) data |= reg0 << 8; \
} while (0)
#define SET_TUNER(data,type) do { \
- (int) data &= ~(0xff << 16); \
- (int) data |= type << 16; \
+ (long) data &= ~(0xff << 16); \
+ (long) data |= type << 16; \
} while (0)
#define SET_DEMOD_ADDR(data,type) do { \
- (int) data &= ~(0xff << 24); \
- (int) data |= type << 24; \
+ (long) data &= ~(0xff << 24); \
+ (long) data |= type << 24; \
} while (0)
-#define GET_PWM(data) ((u8) ((int) data & 0xff))
-#define GET_REG0(data) ((u8) (((int) data >> 8) & 0xff))
-#define GET_TUNER(data) ((u8) (((int) data >> 16) & 0xff))
-#define GET_DEMOD_ADDR(data) ((u8) (((int) data >> 24) & 0xff))
+#define GET_PWM(data) ((u8) ((long) data & 0xff))
+#define GET_REG0(data) ((u8) (((long) data >> 8) & 0xff))
+#define GET_TUNER(data) ((u8) (((long) data >> 16) & 0xff))
+#define GET_DEMOD_ADDR(data) ((u8) (((long) data >> 24) & 0xff))
#define XIN 57840000UL
#define FIN (XIN >> 4)
@@ -435,7 +435,7 @@ int ves1820_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg)
static
-int probe_tuner (struct dvb_i2c_bus *i2c)
+long probe_tuner (struct dvb_i2c_bus *i2c)
{
static const
struct i2c_msg msg1 = { addr: 0x61, flags: 0, buf: NULL, len: 0 };
@@ -480,7 +480,7 @@ u8 read_pwm (struct dvb_i2c_bus *i2c)
static
-int probe_demod_addr (struct dvb_i2c_bus *i2c)
+long probe_demod_addr (struct dvb_i2c_bus *i2c)
{
u8 b [] = { 0x00, 0x1a };
u8 id;
@@ -503,8 +503,8 @@ static
int ves1820_attach (struct dvb_i2c_bus *i2c)
{
void *data = NULL;
- int demod_addr;
- int tuner_type;
+ long demod_addr;
+ long tuner_type;
if ((demod_addr = probe_demod_addr(i2c)) < 0)
return -ENODEV;