]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (3194): Revert one 64-bit fix and improved other 64-bit fixes
authorPeter Beutner <p.beutner@gmx.net>
Mon, 9 Jan 2006 17:32:43 +0000 (15:32 -0200)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 9 Jan 2006 17:32:43 +0000 (15:32 -0200)
- 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>
drivers/media/common/saa7146_hlp.c
drivers/media/dvb/dvb-core/dvb_frontend.c
drivers/media/dvb/dvb-core/dvb_frontend.h
drivers/media/dvb/dvb-core/dvb_net.c
drivers/media/dvb/frontends/stv0299.c
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/av7110.h
drivers/media/dvb/ttpci/budget.c

index be34ec43047024e74d13c20ab03f89a38adca40d..ec52dff8cb695a35fb72687b1aa508c5196b1b97 100644 (file)
@@ -562,7 +562,7 @@ static void saa7146_set_position(struct saa7146_dev *dev, int w_x, int w_y, int
 
        int b_depth = vv->ov_fmt->depth;
        int b_bpl = vv->ov_fb.fmt.bytesperline;
-       u32 base = (u32)(unsigned long)vv->ov_fb.base;
+       u32 base = (u32)vv->ov_fb.base;
 
        struct  saa7146_video_dma vdma1;
 
index a53e95f35a53b4576075baa356b1e40d0dfb7fda..4a08c4ab67309190b07e8bb1491d12fdd695b8cd 100644 (file)
@@ -104,7 +104,7 @@ struct dvb_frontend_private {
        unsigned int exit;
        unsigned int wakeup;
        fe_status_t status;
-       unsigned int tune_mode_flags;
+       unsigned long tune_mode_flags;
        unsigned int delay;
 
        /* swzigzag values */
@@ -808,13 +808,13 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
                         * initialization, so parg is 8 bits and does not
                         * include the initialization or start bit
                         */
-                       unsigned int cmd = ((unsigned long) parg) << 1;
+                       unsigned long cmd = ((unsigned long) parg) << 1;
                        struct timeval nexttime;
                        struct timeval tv[10];
                        int i;
                        u8 last = 1;
                        if (dvb_frontend_debug)
-                               printk("%s switch command: 0x%04x\n", __FUNCTION__, cmd);
+                               printk("%s switch command: 0x%04lx\n", __FUNCTION__, cmd);
                        do_gettimeofday(&nexttime);
                        if (dvb_frontend_debug)
                                memcpy(&tv[0], &nexttime, sizeof(struct timeval));
index f40ee4efbe318d18bc63f60424d4dc6b51f17cf0..70a6d14efda72dddb4b2cb9b92127e77534ce853 100644 (file)
@@ -83,8 +83,8 @@ struct dvb_frontend_ops {
        int (*diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd);
        int (*set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone);
        int (*set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage);
-       int (*enable_high_lnb_voltage)(struct dvb_frontend* fe, int arg);
-       int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned int cmd);
+       int (*enable_high_lnb_voltage)(struct dvb_frontend* fe, long arg);
+       int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd);
        int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable);
 };
 
index 95d991febea60c607edde262560e792b0b80be11..6711eb6a058c9bc6548bb323c684785e549a3466 100644 (file)
@@ -1222,7 +1222,7 @@ static int dvb_net_add_if(struct dvb_net *dvbnet, u16 pid, u8 feedtype)
        return if_num;
 }
 
-static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned int num)
+static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned long num)
 {
        struct net_device *net = dvbnet->device[num];
        struct dvb_net_priv *priv;
index 1085bd15d56d4c1c0039a521c3ad4be78dce5655..5bcd00f792e63ac7dbe255223103c91b4015865e 100644 (file)
@@ -394,7 +394,7 @@ static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltag
        };
 }
 
-static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, u32 cmd)
+static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long cmd)
 {
        struct stv0299_state* state = fe->demodulator_priv;
        u8 reg0x08;
@@ -414,7 +414,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, u32 cmd)
 
        cmd = cmd << 1;
        if (debug_legacy_dish_switch)
-               printk ("%s switch command: 0x%04x\n",__FUNCTION__, cmd);
+               printk ("%s switch command: 0x%04lx\n",__FUNCTION__, cmd);
 
        do_gettimeofday (&nexttime);
        if (debug_legacy_dish_switch)
index 39b4bfa0ab7b2e7e3559f3e5fea06b7e4430800d..8ce4146f55f12cc96953e1f96e6b0826fa3ea684 100644 (file)
@@ -2215,7 +2215,7 @@ static int av7110_fe_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t volta
        return ret;
 }
 
-static int av7110_fe_dishnetwork_send_legacy_command(struct dvb_frontend* fe, unsigned int cmd)
+static int av7110_fe_dishnetwork_send_legacy_command(struct dvb_frontend* fe, unsigned long cmd)
 {
        struct av7110* av7110 = fe->dvb->priv;
 
index a817664f13e040515653e85dc616032c3d34af3e..6cf395e01d34adf33252120592543c0f2d2629cc 100644 (file)
@@ -262,7 +262,7 @@ struct av7110 {
        int (*fe_diseqc_send_burst)(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd);
        int (*fe_set_tone)(struct dvb_frontend* fe, fe_sec_tone_mode_t tone);
        int (*fe_set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage);
-       int (*fe_dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned int cmd);
+       int (*fe_dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd);
        int (*fe_set_frontend)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
 };
 
index 746aad3732939d6687db177b8fa198ed18cbc49e..238c77b52f89f7f0f759ec4dc99acd3487a240ae 100644 (file)
@@ -212,7 +212,7 @@ static int lnbp21_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)
        return 0;
 }
 
-static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, int arg)
+static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, long arg)
 {
        struct budget* budget = (struct budget*) fe->dvb->priv;
        u8 buf;