diff options
author | Julia Lawall <julia@diku.dk> | 2009-07-21 12:47:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:03 -0400 |
commit | 3227c860b6c96f97671e9373c14a280429956928 (patch) | |
tree | 38457ba64a151b5d44143624f55d6b9cf553d1a6 /drivers/media/dvb/bt8xx | |
parent | ce212f052fa2fe1a5e71af13be63667e1916d084 (diff) |
V4L/DVB (12477): Use dst_type field instead of type_flags
It seems from other code that it is the dst_type field rather than the
type_flags field that contains values of the form DST_TYPE_IS...
The type_flags field contains values of the form DST_TYPE_HAS...
The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@ struct dst_state E; @@
(
*E.type_flags ==
\( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
|
*E.type_flags !=
\( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
)
// </smpl>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/bt8xx')
-rw-r--r-- | drivers/media/dvb/bt8xx/dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c index fec1d77fa855..91353a6faf1d 100644 --- a/drivers/media/dvb/bt8xx/dst.c +++ b/drivers/media/dvb/bt8xx/dst.c | |||
@@ -1059,7 +1059,7 @@ static int dst_get_tuner_info(struct dst_state *state) | |||
1059 | dprintk(verbose, DST_ERROR, 1, "DST type has TS=188"); | 1059 | dprintk(verbose, DST_ERROR, 1, "DST type has TS=188"); |
1060 | } | 1060 | } |
1061 | if (state->board_info[0] == 0xbc) { | 1061 | if (state->board_info[0] == 0xbc) { |
1062 | if (state->type_flags != DST_TYPE_IS_ATSC) | 1062 | if (state->dst_type != DST_TYPE_IS_ATSC) |
1063 | state->type_flags |= DST_TYPE_HAS_TS188; | 1063 | state->type_flags |= DST_TYPE_HAS_TS188; |
1064 | else | 1064 | else |
1065 | state->type_flags |= DST_TYPE_HAS_NEWTUNE_2; | 1065 | state->type_flags |= DST_TYPE_HAS_NEWTUNE_2; |