aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-12-26 05:33:48 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:15 -0500
commitd9bdf77296a00538faff95f29bf238857daea2e7 (patch)
tree8cb8d7a0926b91419bac922ec65f619d3d13a066 /drivers/media/dvb/ttpci/av7110.c
parent9d85d776cb6ccc28ac5294a9ac4f6831295f489b (diff)
V4L/DVB (5011): DVB: Remove unneeded void * casts in ttpci/av7110
The patch removes unneeded void * casts for the following (void *) pointers: - struct file: private_data - struct dvb_device: priv - struct dvb_demux: priv - struct dvb_adapter: priv The patch also contains some whitespace and coding style cleanups in the relevant areas. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--drivers/media/dvb/ttpci/av7110.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index 366c1371ee97..bb213d836c90 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -695,8 +695,8 @@ static void gpioirq(unsigned long data)
695static int dvb_osd_ioctl(struct inode *inode, struct file *file, 695static int dvb_osd_ioctl(struct inode *inode, struct file *file,
696 unsigned int cmd, void *parg) 696 unsigned int cmd, void *parg)
697{ 697{
698 struct dvb_device *dvbdev = (struct dvb_device *) file->private_data; 698 struct dvb_device *dvbdev = file->private_data;
699 struct av7110 *av7110 = (struct av7110 *) dvbdev->priv; 699 struct av7110 *av7110 = dvbdev->priv;
700 700
701 dprintk(4, "%p\n", av7110); 701 dprintk(4, "%p\n", av7110);
702 702
@@ -786,7 +786,7 @@ int ChangePIDs(struct av7110 *av7110, u16 vpid, u16 apid, u16 ttpid,
786static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter) 786static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter)
787{ 787{
788 struct dvb_demux_feed *dvbdmxfeed = dvbdmxfilter->feed; 788 struct dvb_demux_feed *dvbdmxfeed = dvbdmxfilter->feed;
789 struct av7110 *av7110 = (struct av7110 *) dvbdmxfeed->demux->priv; 789 struct av7110 *av7110 = dvbdmxfeed->demux->priv;
790 u16 buf[20]; 790 u16 buf[20];
791 int ret, i; 791 int ret, i;
792 u16 handle; 792 u16 handle;
@@ -835,7 +835,7 @@ static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter)
835 835
836static int StopHWFilter(struct dvb_demux_filter *dvbdmxfilter) 836static int StopHWFilter(struct dvb_demux_filter *dvbdmxfilter)
837{ 837{
838 struct av7110 *av7110 = (struct av7110 *) dvbdmxfilter->feed->demux->priv; 838 struct av7110 *av7110 = dvbdmxfilter->feed->demux->priv;
839 u16 buf[3]; 839 u16 buf[3];
840 u16 answ[2]; 840 u16 answ[2];
841 int ret; 841 int ret;
@@ -871,7 +871,7 @@ static int StopHWFilter(struct dvb_demux_filter *dvbdmxfilter)
871static int dvb_feed_start_pid(struct dvb_demux_feed *dvbdmxfeed) 871static int dvb_feed_start_pid(struct dvb_demux_feed *dvbdmxfeed)
872{ 872{
873 struct dvb_demux *dvbdmx = dvbdmxfeed->demux; 873 struct dvb_demux *dvbdmx = dvbdmxfeed->demux;
874 struct av7110 *av7110 = (struct av7110 *) dvbdmx->priv; 874 struct av7110 *av7110 = dvbdmx->priv;
875 u16 *pid = dvbdmx->pids, npids[5]; 875 u16 *pid = dvbdmx->pids, npids[5];
876 int i; 876 int i;
877 int ret = 0; 877 int ret = 0;
@@ -914,7 +914,7 @@ static int dvb_feed_start_pid(struct dvb_demux_feed *dvbdmxfeed)
914static int dvb_feed_stop_pid(struct dvb_demux_feed *dvbdmxfeed) 914static int dvb_feed_stop_pid(struct dvb_demux_feed *dvbdmxfeed)
915{ 915{
916 struct dvb_demux *dvbdmx = dvbdmxfeed->demux; 916 struct dvb_demux *dvbdmx = dvbdmxfeed->demux;
917 struct av7110 *av7110 = (struct av7110 *) dvbdmx->priv; 917 struct av7110 *av7110 = dvbdmx->priv;
918 u16 *pid = dvbdmx->pids, npids[5]; 918 u16 *pid = dvbdmx->pids, npids[5];
919 int i; 919 int i;
920 920
@@ -1103,9 +1103,9 @@ static int dvb_get_stc(struct dmx_demux *demux, unsigned int num,
1103 1103
1104 /* pointer casting paranoia... */ 1104 /* pointer casting paranoia... */
1105 BUG_ON(!demux); 1105 BUG_ON(!demux);
1106 dvbdemux = (struct dvb_demux *) demux->priv; 1106 dvbdemux = demux->priv;
1107 BUG_ON(!dvbdemux); 1107 BUG_ON(!dvbdemux);
1108 av7110 = (struct av7110 *) dvbdemux->priv; 1108 av7110 = dvbdemux->priv;
1109 1109
1110 dprintk(4, "%p\n", av7110); 1110 dprintk(4, "%p\n", av7110);
1111 1111
@@ -1137,7 +1137,7 @@ static int dvb_get_stc(struct dmx_demux *demux, unsigned int num,
1137 1137
1138static int av7110_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone) 1138static int av7110_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
1139{ 1139{
1140 struct av7110* av7110 = (struct av7110*) fe->dvb->priv; 1140 struct av7110* av7110 = fe->dvb->priv;
1141 1141
1142 switch (tone) { 1142 switch (tone) {
1143 case SEC_TONE_ON: 1143 case SEC_TONE_ON:
@@ -1197,7 +1197,7 @@ static int start_ts_capture(struct av7110 *budget)
1197static int budget_start_feed(struct dvb_demux_feed *feed) 1197static int budget_start_feed(struct dvb_demux_feed *feed)
1198{ 1198{
1199 struct dvb_demux *demux = feed->demux; 1199 struct dvb_demux *demux = feed->demux;
1200 struct av7110 *budget = (struct av7110 *) demux->priv; 1200 struct av7110 *budget = demux->priv;
1201 int status; 1201 int status;
1202 1202
1203 dprintk(2, "av7110: %p\n", budget); 1203 dprintk(2, "av7110: %p\n", budget);
@@ -1212,7 +1212,7 @@ static int budget_start_feed(struct dvb_demux_feed *feed)
1212static int budget_stop_feed(struct dvb_demux_feed *feed) 1212static int budget_stop_feed(struct dvb_demux_feed *feed)
1213{ 1213{
1214 struct dvb_demux *demux = feed->demux; 1214 struct dvb_demux *demux = feed->demux;
1215 struct av7110 *budget = (struct av7110 *) demux->priv; 1215 struct av7110 *budget = demux->priv;
1216 int status; 1216 int status;
1217 1217
1218 dprintk(2, "budget: %p\n", budget); 1218 dprintk(2, "budget: %p\n", budget);
@@ -1551,7 +1551,7 @@ static int get_firmware(struct av7110* av7110)
1551 1551
1552static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params) 1552static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params)
1553{ 1553{
1554 struct av7110* av7110 = (struct av7110*) fe->dvb->priv; 1554 struct av7110* av7110 = fe->dvb->priv;
1555 u8 pwr = 0; 1555 u8 pwr = 0;
1556 u8 buf[4]; 1556 u8 buf[4];
1557 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; 1557 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
@@ -1702,7 +1702,7 @@ static int alps_tdlb7_tuner_set_params(struct dvb_frontend* fe, struct dvb_front
1702static int alps_tdlb7_request_firmware(struct dvb_frontend* fe, const struct firmware **fw, char* name) 1702static int alps_tdlb7_request_firmware(struct dvb_frontend* fe, const struct firmware **fw, char* name)
1703{ 1703{
1704#if defined(CONFIG_DVB_SP8870) || defined(CONFIG_DVB_SP8870_MODULE) 1704#if defined(CONFIG_DVB_SP8870) || defined(CONFIG_DVB_SP8870_MODULE)
1705 struct av7110* av7110 = (struct av7110*) fe->dvb->priv; 1705 struct av7110* av7110 = fe->dvb->priv;
1706 1706
1707 return request_firmware(fw, name, &av7110->dev->pci->dev); 1707 return request_firmware(fw, name, &av7110->dev->pci->dev);
1708#else 1708#else
@@ -1867,7 +1867,7 @@ static struct stv0297_config nexusca_stv0297_config = {
1867 1867
1868static int grundig_29504_401_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params) 1868static int grundig_29504_401_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params)
1869{ 1869{
1870 struct av7110* av7110 = (struct av7110*) fe->dvb->priv; 1870 struct av7110* av7110 = fe->dvb->priv;
1871 u32 div; 1871 u32 div;
1872 u8 cfg, cpump, band_select; 1872 u8 cfg, cpump, band_select;
1873 u8 data[4]; 1873 u8 data[4];