mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
[media] cx231xx: replace open-coded ARRAY_SIZE with macro
Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
579e92ffac
commit
272ed119d7
1 changed files with 2 additions and 2 deletions
|
@ -1595,8 +1595,8 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
|
|||
}
|
||||
|
||||
cx231xx_info("Enter IF=%zd\n",
|
||||
sizeof(Dif_set_array)/sizeof(struct dif_settings));
|
||||
for (i = 0; i < sizeof(Dif_set_array)/sizeof(struct dif_settings); i++) {
|
||||
ARRAY_SIZE(Dif_set_array));
|
||||
for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) {
|
||||
if (Dif_set_array[i].if_freq == if_freq) {
|
||||
vid_blk_write_word(dev,
|
||||
Dif_set_array[i].register_address, Dif_set_array[i].value);
|
||||
|
|
Loading…
Reference in a new issue