diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-05 04:20:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 13:23:52 -0400 |
commit | 0c71bf1c3065e80cc3ab91293829169bdeda2c42 (patch) | |
tree | d38b375f6d8cb7cb5acc8eb80bb93539b6fb2909 /drivers/media/video/tveeprom.c | |
parent | e0099e9edabd855bf83d3f57b1843f0b06bfb19d (diff) |
V4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tveeprom.c')
-rw-r--r-- | drivers/media/video/tveeprom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c index a1136da74ba8..5203683dcc3d 100644 --- a/drivers/media/video/tveeprom.c +++ b/drivers/media/video/tveeprom.c | |||
@@ -490,7 +490,7 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, | |||
490 | to indicate 4052 mux was removed in favor of using MSP | 490 | to indicate 4052 mux was removed in favor of using MSP |
491 | inputs directly. */ | 491 | inputs directly. */ |
492 | audioic = eeprom_data[i+2] & 0x7f; | 492 | audioic = eeprom_data[i+2] & 0x7f; |
493 | if (audioic < sizeof(audioIC)/sizeof(*audioIC)) | 493 | if (audioic < ARRAY_SIZE(audioIC)) |
494 | tvee->audio_processor = audioIC[audioic].id; | 494 | tvee->audio_processor = audioIC[audioic].id; |
495 | else | 495 | else |
496 | tvee->audio_processor = AUDIO_CHIP_UNKNOWN; | 496 | tvee->audio_processor = AUDIO_CHIP_UNKNOWN; |
@@ -523,7 +523,7 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, | |||
523 | to indicate 4052 mux was removed in favor of using MSP | 523 | to indicate 4052 mux was removed in favor of using MSP |
524 | inputs directly. */ | 524 | inputs directly. */ |
525 | audioic = eeprom_data[i+1] & 0x7f; | 525 | audioic = eeprom_data[i+1] & 0x7f; |
526 | if (audioic < sizeof(audioIC)/sizeof(*audioIC)) | 526 | if (audioic < ARRAY_SIZE(audioIC)) |
527 | tvee->audio_processor = audioIC[audioic].id; | 527 | tvee->audio_processor = audioIC[audioic].id; |
528 | else | 528 | else |
529 | tvee->audio_processor = AUDIO_CHIP_UNKNOWN; | 529 | tvee->audio_processor = AUDIO_CHIP_UNKNOWN; |
@@ -678,7 +678,7 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, | |||
678 | tveeprom_info("audio processor is unknown (no idx)\n"); | 678 | tveeprom_info("audio processor is unknown (no idx)\n"); |
679 | tvee->audio_processor=AUDIO_CHIP_UNKNOWN; | 679 | tvee->audio_processor=AUDIO_CHIP_UNKNOWN; |
680 | } else { | 680 | } else { |
681 | if (audioic < sizeof(audioIC)/sizeof(*audioIC)) | 681 | if (audioic < ARRAY_SIZE(audioIC)) |
682 | tveeprom_info("audio processor is %s (idx %d)\n", | 682 | tveeprom_info("audio processor is %s (idx %d)\n", |
683 | audioIC[audioic].name,audioic); | 683 | audioIC[audioic].name,audioic); |
684 | else | 684 | else |