diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-04 12:25:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-08 05:53:15 -0400 |
commit | fde04ab95d43e55959f12b92711b0ca4fed40637 (patch) | |
tree | ba274fcfc76b75d08907fa73b10b0a7a5a328881 /drivers/media/pci/ttpci/av7110.c | |
parent | 9ea89e2b62c70f3986c89363818a89c8c11c96c4 (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/pci/ttpci/av7110.c')
-rw-r--r-- | drivers/media/pci/ttpci/av7110.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/pci/ttpci/av7110.c b/drivers/media/pci/ttpci/av7110.c index 3dc7aa9b6f40..f38329d29daa 100644 --- a/drivers/media/pci/ttpci/av7110.c +++ b/drivers/media/pci/ttpci/av7110.c | |||
@@ -990,7 +990,7 @@ static int av7110_start_feed(struct dvb_demux_feed *feed) | |||
990 | 990 | ||
991 | if (feed->type == DMX_TYPE_TS) { | 991 | if (feed->type == DMX_TYPE_TS) { |
992 | if ((feed->ts_type & TS_DECODER) && | 992 | if ((feed->ts_type & TS_DECODER) && |
993 | (feed->pes_type <= DMX_TS_PES_PCR)) { | 993 | (feed->pes_type <= DMX_PES_PCR)) { |
994 | switch (demux->dmx.frontend->source) { | 994 | switch (demux->dmx.frontend->source) { |
995 | case DMX_MEMORY_FE: | 995 | case DMX_MEMORY_FE: |
996 | if (feed->ts_type & TS_DECODER) | 996 | if (feed->ts_type & TS_DECODER) |
@@ -1051,14 +1051,14 @@ static int av7110_stop_feed(struct dvb_demux_feed *feed) | |||
1051 | 1051 | ||
1052 | if (feed->type == DMX_TYPE_TS) { | 1052 | if (feed->type == DMX_TYPE_TS) { |
1053 | if (feed->ts_type & TS_DECODER) { | 1053 | if (feed->ts_type & TS_DECODER) { |
1054 | if (feed->pes_type >= DMX_TS_PES_OTHER || | 1054 | if (feed->pes_type >= DMX_PES_OTHER || |
1055 | !demux->pesfilter[feed->pes_type]) | 1055 | !demux->pesfilter[feed->pes_type]) |
1056 | return -EINVAL; | 1056 | return -EINVAL; |
1057 | demux->pids[feed->pes_type] |= 0x8000; | 1057 | demux->pids[feed->pes_type] |= 0x8000; |
1058 | demux->pesfilter[feed->pes_type] = NULL; | 1058 | demux->pesfilter[feed->pes_type] = NULL; |
1059 | } | 1059 | } |
1060 | if (feed->ts_type & TS_DECODER && | 1060 | if (feed->ts_type & TS_DECODER && |
1061 | feed->pes_type < DMX_TS_PES_OTHER) { | 1061 | feed->pes_type < DMX_PES_OTHER) { |
1062 | ret = dvb_feed_stop_pid(feed); | 1062 | ret = dvb_feed_stop_pid(feed); |
1063 | } else | 1063 | } else |
1064 | if ((feed->ts_type & TS_PACKET) && | 1064 | if ((feed->ts_type & TS_PACKET) && |