aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/firewire
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-04 12:25:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-08 05:53:15 -0400
commitfde04ab95d43e55959f12b92711b0ca4fed40637 (patch)
treeba274fcfc76b75d08907fa73b10b0a7a5a328881 /drivers/media/firewire
parent9ea89e2b62c70f3986c89363818a89c8c11c96c4 (diff)
[media] demux.h: Remove duplicated enum
"enum dmx_ts_pes" and "typedef enum dmx_pes_type_t" are just the same enum declared twice, since Kernel (2.6.12). There's no reason to duplicate it there, and sparse complains about that: drivers/media/dvb-core/dmxdev.c:600:55: warning: mixing different enum types So, remove the internal define, keeping just the external one. Internally, use only "enum dmx_ts_pes", as it is too late to drop dmx_pes_type_t from the userspace API. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/firewire')
-rw-r--r--drivers/media/firewire/firedtv-dvb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/firewire/firedtv-dvb.c b/drivers/media/firewire/firedtv-dvb.c
index eb7496eab130..f710e17953e3 100644
--- a/drivers/media/firewire/firedtv-dvb.c
+++ b/drivers/media/firewire/firedtv-dvb.c
@@ -71,11 +71,11 @@ int fdtv_start_feed(struct dvb_demux_feed *dvbdmxfeed)
71 71
72 if (dvbdmxfeed->type == DMX_TYPE_TS) { 72 if (dvbdmxfeed->type == DMX_TYPE_TS) {
73 switch (dvbdmxfeed->pes_type) { 73 switch (dvbdmxfeed->pes_type) {
74 case DMX_TS_PES_VIDEO: 74 case DMX_PES_VIDEO:
75 case DMX_TS_PES_AUDIO: 75 case DMX_PES_AUDIO:
76 case DMX_TS_PES_TELETEXT: 76 case DMX_PES_TELETEXT:
77 case DMX_TS_PES_PCR: 77 case DMX_PES_PCR:
78 case DMX_TS_PES_OTHER: 78 case DMX_PES_OTHER:
79 c = alloc_channel(fdtv); 79 c = alloc_channel(fdtv);
80 break; 80 break;
81 default: 81 default:
@@ -132,7 +132,7 @@ int fdtv_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
132 (demux->dmx.frontend->source != DMX_MEMORY_FE))) { 132 (demux->dmx.frontend->source != DMX_MEMORY_FE))) {
133 133
134 if (dvbdmxfeed->ts_type & TS_DECODER) { 134 if (dvbdmxfeed->ts_type & TS_DECODER) {
135 if (dvbdmxfeed->pes_type >= DMX_TS_PES_OTHER || 135 if (dvbdmxfeed->pes_type >= DMX_PES_OTHER ||
136 !demux->pesfilter[dvbdmxfeed->pes_type]) 136 !demux->pesfilter[dvbdmxfeed->pes_type])
137 return -EINVAL; 137 return -EINVAL;
138 138
@@ -141,7 +141,7 @@ int fdtv_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
141 } 141 }
142 142
143 if (!(dvbdmxfeed->ts_type & TS_DECODER && 143 if (!(dvbdmxfeed->ts_type & TS_DECODER &&
144 dvbdmxfeed->pes_type < DMX_TS_PES_OTHER)) 144 dvbdmxfeed->pes_type < DMX_PES_OTHER))
145 return 0; 145 return 0;
146 } 146 }
147 147