diff options
author | Peter Beutner <p.beutner@gmx.net> | 2006-01-09 12:32:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-09 12:32:43 -0500 |
commit | 400b7083fbcc8e7a1157a82aa126977179873268 (patch) | |
tree | 67669ca5f0e0ddd6858cf0c7c5b485ec7554ca40 | |
parent | d8e6acf2ec120f3dc7929581d87b5b8b3ff21627 (diff) |
V4L/DVB (3194): Revert one 64-bit fix and improved other 64-bit fixes
- Reverted objectionable fix in saa7146_hlp.c
- Merged in improved dvb 64-bit fixes from Peter Beutner.
Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r-- | drivers/media/common/saa7146_hlp.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 6 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.h | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_net.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv0299.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget.c | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/common/saa7146_hlp.c b/drivers/media/common/saa7146_hlp.c index be34ec430470..ec52dff8cb69 100644 --- a/drivers/media/common/saa7146_hlp.c +++ b/drivers/media/common/saa7146_hlp.c | |||
@@ -562,7 +562,7 @@ static void saa7146_set_position(struct saa7146_dev *dev, int w_x, int w_y, int | |||
562 | 562 | ||
563 | int b_depth = vv->ov_fmt->depth; | 563 | int b_depth = vv->ov_fmt->depth; |
564 | int b_bpl = vv->ov_fb.fmt.bytesperline; | 564 | int b_bpl = vv->ov_fb.fmt.bytesperline; |
565 | u32 base = (u32)(unsigned long)vv->ov_fb.base; | 565 | u32 base = (u32)vv->ov_fb.base; |
566 | 566 | ||
567 | struct saa7146_video_dma vdma1; | 567 | struct saa7146_video_dma vdma1; |
568 | 568 | ||
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index a53e95f35a53..4a08c4ab6730 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -104,7 +104,7 @@ struct dvb_frontend_private { | |||
104 | unsigned int exit; | 104 | unsigned int exit; |
105 | unsigned int wakeup; | 105 | unsigned int wakeup; |
106 | fe_status_t status; | 106 | fe_status_t status; |
107 | unsigned int tune_mode_flags; | 107 | unsigned long tune_mode_flags; |
108 | unsigned int delay; | 108 | unsigned int delay; |
109 | 109 | ||
110 | /* swzigzag values */ | 110 | /* swzigzag values */ |
@@ -808,13 +808,13 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file, | |||
808 | * initialization, so parg is 8 bits and does not | 808 | * initialization, so parg is 8 bits and does not |
809 | * include the initialization or start bit | 809 | * include the initialization or start bit |
810 | */ | 810 | */ |
811 | unsigned int cmd = ((unsigned long) parg) << 1; | 811 | unsigned long cmd = ((unsigned long) parg) << 1; |
812 | struct timeval nexttime; | 812 | struct timeval nexttime; |
813 | struct timeval tv[10]; | 813 | struct timeval tv[10]; |
814 | int i; | 814 | int i; |
815 | u8 last = 1; | 815 | u8 last = 1; |
816 | if (dvb_frontend_debug) | 816 | if (dvb_frontend_debug) |
817 | printk("%s switch command: 0x%04x\n", __FUNCTION__, cmd); | 817 | printk("%s switch command: 0x%04lx\n", __FUNCTION__, cmd); |
818 | do_gettimeofday(&nexttime); | 818 | do_gettimeofday(&nexttime); |
819 | if (dvb_frontend_debug) | 819 | if (dvb_frontend_debug) |
820 | memcpy(&tv[0], &nexttime, sizeof(struct timeval)); | 820 | memcpy(&tv[0], &nexttime, sizeof(struct timeval)); |
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index f40ee4efbe31..70a6d14efda7 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h | |||
@@ -83,8 +83,8 @@ struct dvb_frontend_ops { | |||
83 | int (*diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd); | 83 | int (*diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd); |
84 | int (*set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone); | 84 | int (*set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone); |
85 | int (*set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage); | 85 | int (*set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage); |
86 | int (*enable_high_lnb_voltage)(struct dvb_frontend* fe, int arg); | 86 | int (*enable_high_lnb_voltage)(struct dvb_frontend* fe, long arg); |
87 | int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned int cmd); | 87 | int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd); |
88 | int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable); | 88 | int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable); |
89 | }; | 89 | }; |
90 | 90 | ||
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c index 95d991febea6..6711eb6a058c 100644 --- a/drivers/media/dvb/dvb-core/dvb_net.c +++ b/drivers/media/dvb/dvb-core/dvb_net.c | |||
@@ -1222,7 +1222,7 @@ static int dvb_net_add_if(struct dvb_net *dvbnet, u16 pid, u8 feedtype) | |||
1222 | return if_num; | 1222 | return if_num; |
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned int num) | 1225 | static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned long num) |
1226 | { | 1226 | { |
1227 | struct net_device *net = dvbnet->device[num]; | 1227 | struct net_device *net = dvbnet->device[num]; |
1228 | struct dvb_net_priv *priv; | 1228 | struct dvb_net_priv *priv; |
diff --git a/drivers/media/dvb/frontends/stv0299.c b/drivers/media/dvb/frontends/stv0299.c index 1085bd15d56d..5bcd00f792e6 100644 --- a/drivers/media/dvb/frontends/stv0299.c +++ b/drivers/media/dvb/frontends/stv0299.c | |||
@@ -394,7 +394,7 @@ static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltag | |||
394 | }; | 394 | }; |
395 | } | 395 | } |
396 | 396 | ||
397 | static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, u32 cmd) | 397 | static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long cmd) |
398 | { | 398 | { |
399 | struct stv0299_state* state = fe->demodulator_priv; | 399 | struct stv0299_state* state = fe->demodulator_priv; |
400 | u8 reg0x08; | 400 | u8 reg0x08; |
@@ -414,7 +414,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, u32 cmd) | |||
414 | 414 | ||
415 | cmd = cmd << 1; | 415 | cmd = cmd << 1; |
416 | if (debug_legacy_dish_switch) | 416 | if (debug_legacy_dish_switch) |
417 | printk ("%s switch command: 0x%04x\n",__FUNCTION__, cmd); | 417 | printk ("%s switch command: 0x%04lx\n",__FUNCTION__, cmd); |
418 | 418 | ||
419 | do_gettimeofday (&nexttime); | 419 | do_gettimeofday (&nexttime); |
420 | if (debug_legacy_dish_switch) | 420 | if (debug_legacy_dish_switch) |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 39b4bfa0ab7b..8ce4146f55f1 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -2215,7 +2215,7 @@ static int av7110_fe_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t volta | |||
2215 | return ret; | 2215 | return ret; |
2216 | } | 2216 | } |
2217 | 2217 | ||
2218 | static int av7110_fe_dishnetwork_send_legacy_command(struct dvb_frontend* fe, unsigned int cmd) | 2218 | static int av7110_fe_dishnetwork_send_legacy_command(struct dvb_frontend* fe, unsigned long cmd) |
2219 | { | 2219 | { |
2220 | struct av7110* av7110 = fe->dvb->priv; | 2220 | struct av7110* av7110 = fe->dvb->priv; |
2221 | 2221 | ||
diff --git a/drivers/media/dvb/ttpci/av7110.h b/drivers/media/dvb/ttpci/av7110.h index a817664f13e0..6cf395e01d34 100644 --- a/drivers/media/dvb/ttpci/av7110.h +++ b/drivers/media/dvb/ttpci/av7110.h | |||
@@ -262,7 +262,7 @@ struct av7110 { | |||
262 | int (*fe_diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd); | 262 | int (*fe_diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd); |
263 | int (*fe_set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone); | 263 | int (*fe_set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone); |
264 | int (*fe_set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage); | 264 | int (*fe_set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage); |
265 | int (*fe_dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned int cmd); | 265 | int (*fe_dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd); |
266 | int (*fe_set_frontend)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); | 266 | int (*fe_set_frontend)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params); |
267 | }; | 267 | }; |
268 | 268 | ||
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c index 746aad373293..238c77b52f89 100644 --- a/drivers/media/dvb/ttpci/budget.c +++ b/drivers/media/dvb/ttpci/budget.c | |||
@@ -212,7 +212,7 @@ static int lnbp21_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage) | |||
212 | return 0; | 212 | return 0; |
213 | } | 213 | } |
214 | 214 | ||
215 | static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, int arg) | 215 | static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, long arg) |
216 | { | 216 | { |
217 | struct budget* budget = (struct budget*) fe->dvb->priv; | 217 | struct budget* budget = (struct budget*) fe->dvb->priv; |
218 | u8 buf; | 218 | u8 buf; |