diff options
Diffstat (limited to 'drivers/media/common/tuners/mxl5005s.c')
-rw-r--r-- | drivers/media/common/tuners/mxl5005s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index a8878244bb3c..31522d2e318e 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c | |||
@@ -3598,7 +3598,7 @@ static u16 MXL_GetInitRegister(struct dvb_frontend *fe, u8 *RegNum, | |||
3598 | 76, 77, 91, 134, 135, 137, 147, | 3598 | 76, 77, 91, 134, 135, 137, 147, |
3599 | 156, 166, 167, 168, 25 }; | 3599 | 156, 166, 167, 168, 25 }; |
3600 | 3600 | ||
3601 | *count = sizeof(RegAddr) / sizeof(u8); | 3601 | *count = ARRAY_SIZE(RegAddr); |
3602 | 3602 | ||
3603 | status += MXL_BlockInit(fe); | 3603 | status += MXL_BlockInit(fe); |
3604 | 3604 | ||
@@ -3630,7 +3630,7 @@ static u16 MXL_GetCHRegister(struct dvb_frontend *fe, u8 *RegNum, u8 *RegVal, | |||
3630 | */ | 3630 | */ |
3631 | #endif | 3631 | #endif |
3632 | 3632 | ||
3633 | *count = sizeof(RegAddr) / sizeof(u8); | 3633 | *count = ARRAY_SIZE(RegAddr); |
3634 | 3634 | ||
3635 | for (i = 0 ; i < *count; i++) { | 3635 | for (i = 0 ; i < *count; i++) { |
3636 | RegNum[i] = RegAddr[i]; | 3636 | RegNum[i] = RegAddr[i]; |
@@ -3648,7 +3648,7 @@ static u16 MXL_GetCHRegister_ZeroIF(struct dvb_frontend *fe, u8 *RegNum, | |||
3648 | 3648 | ||
3649 | u8 RegAddr[] = {43, 136}; | 3649 | u8 RegAddr[] = {43, 136}; |
3650 | 3650 | ||
3651 | *count = sizeof(RegAddr) / sizeof(u8); | 3651 | *count = ARRAY_SIZE(RegAddr); |
3652 | 3652 | ||
3653 | for (i = 0; i < *count; i++) { | 3653 | for (i = 0; i < *count; i++) { |
3654 | RegNum[i] = RegAddr[i]; | 3654 | RegNum[i] = RegAddr[i]; |