Commit 778f247f authored by Yu Zhe's avatar Yu Zhe Committed by Hans Verkuil

media: ttpci: remove unnecessary (void*) conversions

Pointer variables of void * type do not require type cast.
Signed-off-by: default avatarYu Zhe <yuzhe@nfschina.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent da9b2c59
...@@ -123,7 +123,7 @@ static int i2c_writereg(struct i2c_adapter *i2c, u8 id, u8 reg, u8 val) ...@@ -123,7 +123,7 @@ static int i2c_writereg(struct i2c_adapter *i2c, u8 id, u8 reg, u8 val)
static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address) static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
int result; int result;
if (slot != 0) if (slot != 0)
...@@ -142,7 +142,7 @@ static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int ad ...@@ -142,7 +142,7 @@ static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int ad
static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address, u8 value) static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address, u8 value)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
int result; int result;
if (slot != 0) if (slot != 0)
...@@ -161,7 +161,7 @@ static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int a ...@@ -161,7 +161,7 @@ static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int a
static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address) static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
int result; int result;
if (slot != 0) if (slot != 0)
...@@ -181,7 +181,7 @@ static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addre ...@@ -181,7 +181,7 @@ static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addre
static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value) static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
int result; int result;
if (slot != 0) if (slot != 0)
...@@ -200,7 +200,7 @@ static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addr ...@@ -200,7 +200,7 @@ static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addr
static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
struct saa7146_dev *saa = budget_av->budget.dev; struct saa7146_dev *saa = budget_av->budget.dev;
if (slot != 0) if (slot != 0)
...@@ -229,7 +229,7 @@ static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot) ...@@ -229,7 +229,7 @@ static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot)
static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
struct saa7146_dev *saa = budget_av->budget.dev; struct saa7146_dev *saa = budget_av->budget.dev;
if (slot != 0) if (slot != 0)
...@@ -245,7 +245,7 @@ static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot) ...@@ -245,7 +245,7 @@ static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot)
static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
struct saa7146_dev *saa = budget_av->budget.dev; struct saa7146_dev *saa = budget_av->budget.dev;
if (slot != 0) if (slot != 0)
...@@ -260,7 +260,7 @@ static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) ...@@ -260,7 +260,7 @@ static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot)
static int ciintf_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open) static int ciintf_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open)
{ {
struct budget_av *budget_av = (struct budget_av *) ca->data; struct budget_av *budget_av = ca->data;
struct saa7146_dev *saa = budget_av->budget.dev; struct saa7146_dev *saa = budget_av->budget.dev;
int result; int result;
...@@ -491,7 +491,7 @@ static int philips_su1278_ty_ci_tuner_set_params(struct dvb_frontend *fe) ...@@ -491,7 +491,7 @@ static int philips_su1278_ty_ci_tuner_set_params(struct dvb_frontend *fe)
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
u32 div; u32 div;
u8 buf[4]; u8 buf[4];
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
struct i2c_msg msg = {.addr = 0x61,.flags = 0,.buf = buf,.len = sizeof(buf) }; struct i2c_msg msg = {.addr = 0x61,.flags = 0,.buf = buf,.len = sizeof(buf) };
if ((c->frequency < 950000) || (c->frequency > 2150000)) if ((c->frequency < 950000) || (c->frequency > 2150000))
...@@ -604,7 +604,7 @@ static const struct stv0299_config cinergy_1200s_1894_0010_config = { ...@@ -604,7 +604,7 @@ static const struct stv0299_config cinergy_1200s_1894_0010_config = {
static int philips_cu1216_tuner_set_params(struct dvb_frontend *fe) static int philips_cu1216_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u8 buf[6]; u8 buf[6];
struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) }; struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) };
int i; int i;
...@@ -668,7 +668,7 @@ static struct tda10023_config philips_cu1216_tda10023_config = { ...@@ -668,7 +668,7 @@ static struct tda10023_config philips_cu1216_tda10023_config = {
static int philips_tu1216_tuner_init(struct dvb_frontend *fe) static int philips_tu1216_tuner_init(struct dvb_frontend *fe)
{ {
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
static u8 tu1216_init[] = { 0x0b, 0xf5, 0x85, 0xab }; static u8 tu1216_init[] = { 0x0b, 0xf5, 0x85, 0xab };
struct i2c_msg tuner_msg = {.addr = 0x60,.flags = 0,.buf = tu1216_init,.len = sizeof(tu1216_init) }; struct i2c_msg tuner_msg = {.addr = 0x60,.flags = 0,.buf = tu1216_init,.len = sizeof(tu1216_init) };
...@@ -685,7 +685,7 @@ static int philips_tu1216_tuner_init(struct dvb_frontend *fe) ...@@ -685,7 +685,7 @@ static int philips_tu1216_tuner_init(struct dvb_frontend *fe)
static int philips_tu1216_tuner_set_params(struct dvb_frontend *fe) static int philips_tu1216_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u8 tuner_buf[4]; u8 tuner_buf[4];
struct i2c_msg tuner_msg = {.addr = 0x60,.flags = 0,.buf = tuner_buf,.len = struct i2c_msg tuner_msg = {.addr = 0x60,.flags = 0,.buf = tuner_buf,.len =
sizeof(tuner_buf) }; sizeof(tuner_buf) };
...@@ -769,7 +769,7 @@ static int philips_tu1216_tuner_set_params(struct dvb_frontend *fe) ...@@ -769,7 +769,7 @@ static int philips_tu1216_tuner_set_params(struct dvb_frontend *fe)
static int philips_tu1216_request_firmware(struct dvb_frontend *fe, static int philips_tu1216_request_firmware(struct dvb_frontend *fe,
const struct firmware **fw, char *name) const struct firmware **fw, char *name)
{ {
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
return request_firmware(fw, name, &budget->dev->pci->dev); return request_firmware(fw, name, &budget->dev->pci->dev);
} }
...@@ -1353,7 +1353,7 @@ static void frontend_init(struct budget_av *budget_av) ...@@ -1353,7 +1353,7 @@ static void frontend_init(struct budget_av *budget_av)
static void budget_av_irq(struct saa7146_dev *dev, u32 * isr) static void budget_av_irq(struct saa7146_dev *dev, u32 * isr)
{ {
struct budget_av *budget_av = (struct budget_av *) dev->ext_priv; struct budget_av *budget_av = dev->ext_priv;
dprintk(8, "dev: %p, budget_av: %p\n", dev, budget_av); dprintk(8, "dev: %p, budget_av: %p\n", dev, budget_av);
...@@ -1363,7 +1363,7 @@ static void budget_av_irq(struct saa7146_dev *dev, u32 * isr) ...@@ -1363,7 +1363,7 @@ static void budget_av_irq(struct saa7146_dev *dev, u32 * isr)
static int budget_av_detach(struct saa7146_dev *dev) static int budget_av_detach(struct saa7146_dev *dev)
{ {
struct budget_av *budget_av = (struct budget_av *) dev->ext_priv; struct budget_av *budget_av = dev->ext_priv;
int err; int err;
dprintk(2, "dev: %p\n", dev); dprintk(2, "dev: %p\n", dev);
...@@ -1412,7 +1412,7 @@ static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) ...@@ -1412,7 +1412,7 @@ static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i)
static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) static int vidioc_g_input(struct file *file, void *fh, unsigned int *i)
{ {
struct saa7146_dev *dev = video_drvdata(file); struct saa7146_dev *dev = video_drvdata(file);
struct budget_av *budget_av = (struct budget_av *)dev->ext_priv; struct budget_av *budget_av = dev->ext_priv;
*i = budget_av->cur_input; *i = budget_av->cur_input;
...@@ -1423,7 +1423,7 @@ static int vidioc_g_input(struct file *file, void *fh, unsigned int *i) ...@@ -1423,7 +1423,7 @@ static int vidioc_g_input(struct file *file, void *fh, unsigned int *i)
static int vidioc_s_input(struct file *file, void *fh, unsigned int input) static int vidioc_s_input(struct file *file, void *fh, unsigned int input)
{ {
struct saa7146_dev *dev = video_drvdata(file); struct saa7146_dev *dev = video_drvdata(file);
struct budget_av *budget_av = (struct budget_av *)dev->ext_priv; struct budget_av *budget_av = dev->ext_priv;
dprintk(1, "VIDIOC_S_INPUT %d\n", input); dprintk(1, "VIDIOC_S_INPUT %d\n", input);
return saa7113_setinput(budget_av, input); return saa7113_setinput(budget_av, input);
......
...@@ -251,7 +251,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci) ...@@ -251,7 +251,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci)
static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address) static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
if (slot != 0) if (slot != 0)
return -EINVAL; return -EINVAL;
...@@ -262,7 +262,7 @@ static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int ad ...@@ -262,7 +262,7 @@ static int ciintf_read_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int ad
static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address, u8 value) static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int address, u8 value)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
if (slot != 0) if (slot != 0)
return -EINVAL; return -EINVAL;
...@@ -273,7 +273,7 @@ static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int a ...@@ -273,7 +273,7 @@ static int ciintf_write_attribute_mem(struct dvb_ca_en50221 *ca, int slot, int a
static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address) static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
if (slot != 0) if (slot != 0)
return -EINVAL; return -EINVAL;
...@@ -284,7 +284,7 @@ static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addre ...@@ -284,7 +284,7 @@ static int ciintf_read_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addre
static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value) static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 address, u8 value)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
if (slot != 0) if (slot != 0)
return -EINVAL; return -EINVAL;
...@@ -295,7 +295,7 @@ static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addr ...@@ -295,7 +295,7 @@ static int ciintf_write_cam_control(struct dvb_ca_en50221 *ca, int slot, u8 addr
static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
struct saa7146_dev *saa = budget_ci->budget.dev; struct saa7146_dev *saa = budget_ci->budget.dev;
if (slot != 0) if (slot != 0)
...@@ -318,7 +318,7 @@ static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot) ...@@ -318,7 +318,7 @@ static int ciintf_slot_reset(struct dvb_ca_en50221 *ca, int slot)
static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
struct saa7146_dev *saa = budget_ci->budget.dev; struct saa7146_dev *saa = budget_ci->budget.dev;
if (slot != 0) if (slot != 0)
...@@ -331,7 +331,7 @@ static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot) ...@@ -331,7 +331,7 @@ static int ciintf_slot_shutdown(struct dvb_ca_en50221 *ca, int slot)
static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) static int ciintf_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
struct saa7146_dev *saa = budget_ci->budget.dev; struct saa7146_dev *saa = budget_ci->budget.dev;
int tmp; int tmp;
...@@ -400,7 +400,7 @@ static void ciintf_interrupt(struct tasklet_struct *t) ...@@ -400,7 +400,7 @@ static void ciintf_interrupt(struct tasklet_struct *t)
static int ciintf_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open) static int ciintf_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) ca->data; struct budget_ci *budget_ci = ca->data;
unsigned int flags; unsigned int flags;
// ensure we don't get spurious IRQs during initialisation // ensure we don't get spurious IRQs during initialisation
...@@ -553,7 +553,7 @@ static void ciintf_deinit(struct budget_ci *budget_ci) ...@@ -553,7 +553,7 @@ static void ciintf_deinit(struct budget_ci *budget_ci)
static void budget_ci_irq(struct saa7146_dev *dev, u32 * isr) static void budget_ci_irq(struct saa7146_dev *dev, u32 * isr)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) dev->ext_priv; struct budget_ci *budget_ci = dev->ext_priv;
dprintk(8, "dev: %p, budget_ci: %p\n", dev, budget_ci); dprintk(8, "dev: %p, budget_ci: %p\n", dev, budget_ci);
...@@ -648,7 +648,7 @@ static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate, ...@@ -648,7 +648,7 @@ static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate,
static int philips_su1278_tt_tuner_set_params(struct dvb_frontend *fe) static int philips_su1278_tt_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; struct budget_ci *budget_ci = fe->dvb->priv;
u32 div; u32 div;
u8 buf[4]; u8 buf[4];
struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) }; struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) };
...@@ -698,7 +698,7 @@ static const struct stv0299_config philips_su1278_tt_config = { ...@@ -698,7 +698,7 @@ static const struct stv0299_config philips_su1278_tt_config = {
static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe) static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; struct budget_ci *budget_ci = fe->dvb->priv;
static u8 td1316_init[] = { 0x0b, 0xf5, 0x85, 0xab }; static u8 td1316_init[] = { 0x0b, 0xf5, 0x85, 0xab };
static u8 disable_mc44BC374c[] = { 0x1d, 0x74, 0xa0, 0x68 }; static u8 disable_mc44BC374c[] = { 0x1d, 0x74, 0xa0, 0x68 };
struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address,.flags = 0,.buf = td1316_init,.len = struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address,.flags = 0,.buf = td1316_init,.len =
...@@ -729,7 +729,7 @@ static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe) ...@@ -729,7 +729,7 @@ static int philips_tdm1316l_tuner_init(struct dvb_frontend *fe)
static int philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe) static int philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; struct budget_ci *budget_ci = fe->dvb->priv;
u8 tuner_buf[4]; u8 tuner_buf[4];
struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address,.flags = 0,.buf = tuner_buf,.len = sizeof(tuner_buf) }; struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address,.flags = 0,.buf = tuner_buf,.len = sizeof(tuner_buf) };
int tuner_frequency = 0; int tuner_frequency = 0;
...@@ -815,7 +815,7 @@ static int philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe) ...@@ -815,7 +815,7 @@ static int philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe)
static int philips_tdm1316l_request_firmware(struct dvb_frontend *fe, static int philips_tdm1316l_request_firmware(struct dvb_frontend *fe,
const struct firmware **fw, char *name) const struct firmware **fw, char *name)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; struct budget_ci *budget_ci = fe->dvb->priv;
return request_firmware(fw, name, &budget_ci->budget.dev->pci->dev); return request_firmware(fw, name, &budget_ci->budget.dev->pci->dev);
} }
...@@ -845,7 +845,7 @@ static struct tda1004x_config philips_tdm1316l_config_invert = { ...@@ -845,7 +845,7 @@ static struct tda1004x_config philips_tdm1316l_config_invert = {
static int dvbc_philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe) static int dvbc_philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; struct budget_ci *budget_ci = fe->dvb->priv;
u8 tuner_buf[5]; u8 tuner_buf[5];
struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address, struct i2c_msg tuner_msg = {.addr = budget_ci->tuner_pll_address,
.flags = 0, .flags = 0,
...@@ -1494,7 +1494,7 @@ static int budget_ci_attach(struct saa7146_dev *dev, struct saa7146_pci_extensio ...@@ -1494,7 +1494,7 @@ static int budget_ci_attach(struct saa7146_dev *dev, struct saa7146_pci_extensio
static int budget_ci_detach(struct saa7146_dev *dev) static int budget_ci_detach(struct saa7146_dev *dev)
{ {
struct budget_ci *budget_ci = (struct budget_ci *) dev->ext_priv; struct budget_ci *budget_ci = dev->ext_priv;
struct saa7146_dev *saa = budget_ci->budget.dev; struct saa7146_dev *saa = budget_ci->budget.dev;
int err; int err;
......
...@@ -147,7 +147,7 @@ static int start_ts_capture(struct budget *budget) ...@@ -147,7 +147,7 @@ static int start_ts_capture(struct budget *budget)
static int budget_read_fe_status(struct dvb_frontend *fe, static int budget_read_fe_status(struct dvb_frontend *fe,
enum fe_status *status) enum fe_status *status)
{ {
struct budget *budget = (struct budget *) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
int synced; int synced;
int ret; int ret;
...@@ -570,7 +570,7 @@ int ttpci_budget_deinit(struct budget *budget) ...@@ -570,7 +570,7 @@ int ttpci_budget_deinit(struct budget *budget)
void ttpci_budget_irq10_handler(struct saa7146_dev *dev, u32 * isr) void ttpci_budget_irq10_handler(struct saa7146_dev *dev, u32 * isr)
{ {
struct budget *budget = (struct budget *) dev->ext_priv; struct budget *budget = dev->ext_priv;
dprintk(8, "dev: %p, budget: %p\n", dev, budget); dprintk(8, "dev: %p, budget: %p\n", dev, budget);
...@@ -580,7 +580,7 @@ void ttpci_budget_irq10_handler(struct saa7146_dev *dev, u32 * isr) ...@@ -580,7 +580,7 @@ void ttpci_budget_irq10_handler(struct saa7146_dev *dev, u32 * isr)
void ttpci_budget_set_video_port(struct saa7146_dev *dev, int video_port) void ttpci_budget_set_video_port(struct saa7146_dev *dev, int video_port)
{ {
struct budget *budget = (struct budget *) dev->ext_priv; struct budget *budget = dev->ext_priv;
spin_lock(&budget->feedlock); spin_lock(&budget->feedlock);
budget->video_port = video_port; budget->video_port = video_port;
......
...@@ -144,7 +144,7 @@ static int SetVoltage_Activy(struct budget *budget, ...@@ -144,7 +144,7 @@ static int SetVoltage_Activy(struct budget *budget,
static int siemens_budget_set_voltage(struct dvb_frontend *fe, static int siemens_budget_set_voltage(struct dvb_frontend *fe,
enum fe_sec_voltage voltage) enum fe_sec_voltage voltage)
{ {
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
return SetVoltage_Activy (budget, voltage); return SetVoltage_Activy (budget, voltage);
} }
...@@ -152,7 +152,7 @@ static int siemens_budget_set_voltage(struct dvb_frontend *fe, ...@@ -152,7 +152,7 @@ static int siemens_budget_set_voltage(struct dvb_frontend *fe,
static int budget_set_tone(struct dvb_frontend *fe, static int budget_set_tone(struct dvb_frontend *fe,
enum fe_sec_tone_mode tone) enum fe_sec_tone_mode tone)
{ {
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
switch (tone) { switch (tone) {
case SEC_TONE_ON: case SEC_TONE_ON:
...@@ -172,7 +172,7 @@ static int budget_set_tone(struct dvb_frontend *fe, ...@@ -172,7 +172,7 @@ static int budget_set_tone(struct dvb_frontend *fe,
static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd) static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd)
{ {
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
SendDiSEqCMsg (budget, cmd->msg_len, cmd->msg, 0); SendDiSEqCMsg (budget, cmd->msg_len, cmd->msg, 0);
...@@ -182,7 +182,7 @@ static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_dis ...@@ -182,7 +182,7 @@ static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_dis
static int budget_diseqc_send_burst(struct dvb_frontend *fe, static int budget_diseqc_send_burst(struct dvb_frontend *fe,
enum fe_sec_mini_cmd minicmd) enum fe_sec_mini_cmd minicmd)
{ {
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
SendDiSEqCMsg (budget, 0, NULL, minicmd); SendDiSEqCMsg (budget, 0, NULL, minicmd);
...@@ -192,7 +192,7 @@ static int budget_diseqc_send_burst(struct dvb_frontend *fe, ...@@ -192,7 +192,7 @@ static int budget_diseqc_send_burst(struct dvb_frontend *fe,
static int alps_bsrv2_tuner_set_params(struct dvb_frontend *fe) static int alps_bsrv2_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u8 pwr = 0; u8 pwr = 0;
u8 buf[4]; u8 buf[4];
struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
...@@ -234,7 +234,7 @@ static struct ves1x93_config alps_bsrv2_config = ...@@ -234,7 +234,7 @@ static struct ves1x93_config alps_bsrv2_config =
static int alps_tdbe2_tuner_set_params(struct dvb_frontend *fe) static int alps_tdbe2_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u32 div; u32 div;
u8 data[4]; u8 data[4];
struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) }; struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) };
...@@ -320,7 +320,7 @@ static u8 tuner_address_grundig_29504_401_activy = 0x60; ...@@ -320,7 +320,7 @@ static u8 tuner_address_grundig_29504_401_activy = 0x60;
static int grundig_29504_451_tuner_set_params(struct dvb_frontend *fe) static int grundig_29504_451_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u32 div; u32 div;
u8 data[4]; u8 data[4];
struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
...@@ -344,7 +344,7 @@ static struct tda8083_config grundig_29504_451_config = { ...@@ -344,7 +344,7 @@ static struct tda8083_config grundig_29504_451_config = {
static int s5h1420_tuner_set_params(struct dvb_frontend *fe) static int s5h1420_tuner_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct budget* budget = (struct budget*) fe->dvb->priv; struct budget *budget = fe->dvb->priv;
u32 div; u32 div;
u8 data[4]; u8 data[4];
struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) };
...@@ -405,7 +405,7 @@ static const struct stv0299_config alps_bsbe1_config_activy = { ...@@ -405,7 +405,7 @@ static const struct stv0299_config alps_bsbe1_config_activy = {
static int alps_tdhd1_204_request_firmware(struct dvb_frontend *fe, const struct firmware **fw, char *name) static int alps_tdhd1_204_request_firmware(struct dvb_frontend *fe, const struct firmware **fw, char *name)
{ {
struct budget *budget = (struct budget *)fe->dvb->priv; struct budget *budget = fe->dvb->priv;
return request_firmware(fw, name, &budget->dev->pci->dev); return request_firmware(fw, name, &budget->dev->pci->dev);
} }
...@@ -800,7 +800,7 @@ static int budget_attach (struct saa7146_dev* dev, struct saa7146_pci_extension_ ...@@ -800,7 +800,7 @@ static int budget_attach (struct saa7146_dev* dev, struct saa7146_pci_extension_
static int budget_detach (struct saa7146_dev* dev) static int budget_detach (struct saa7146_dev* dev)
{ {
struct budget *budget = (struct budget*) dev->ext_priv; struct budget *budget = dev->ext_priv;
int err; int err;
if (budget->dvb_frontend) { if (budget->dvb_frontend) {
......
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