diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-21 23:02:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:05 -0400 |
commit | d6f76b979c9f83aaf2fa3d51eb5b175690f7acbc (patch) | |
tree | dbe05b97981155a5bdae6e8dee2653e0cfad34c2 /drivers/media/video/tveeprom.c | |
parent | 3227c860b6c96f97671e9373c14a280429956928 (diff) |
V4L/DVB (12478): ARRAY_SIZE changes
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/
[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tveeprom.c')
-rw-r--r-- | drivers/media/video/tveeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c index ac02808106c1..d533ea57e7b1 100644 --- a/drivers/media/video/tveeprom.c +++ b/drivers/media/video/tveeprom.c | |||
@@ -646,14 +646,14 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, | |||
646 | tvee->has_radio = 1; | 646 | tvee->has_radio = 1; |
647 | } | 647 | } |
648 | 648 | ||
649 | if (tuner1 < sizeof(hauppauge_tuner)/sizeof(struct HAUPPAUGE_TUNER)) { | 649 | if (tuner1 < ARRAY_SIZE(hauppauge_tuner)) { |
650 | tvee->tuner_type = hauppauge_tuner[tuner1].id; | 650 | tvee->tuner_type = hauppauge_tuner[tuner1].id; |
651 | t_name1 = hauppauge_tuner[tuner1].name; | 651 | t_name1 = hauppauge_tuner[tuner1].name; |
652 | } else { | 652 | } else { |
653 | t_name1 = "unknown"; | 653 | t_name1 = "unknown"; |
654 | } | 654 | } |
655 | 655 | ||
656 | if (tuner2 < sizeof(hauppauge_tuner)/sizeof(struct HAUPPAUGE_TUNER)) { | 656 | if (tuner2 < ARRAY_SIZE(hauppauge_tuner)) { |
657 | tvee->tuner2_type = hauppauge_tuner[tuner2].id; | 657 | tvee->tuner2_type = hauppauge_tuner[tuner2].id; |
658 | t_name2 = hauppauge_tuner[tuner2].name; | 658 | t_name2 = hauppauge_tuner[tuner2].name; |
659 | } else { | 659 | } else { |