Commit 272ed119 authored by Jim Cromie's avatar Jim Cromie Committed by Mauro Carvalho Chehab

[media] cx231xx: replace open-coded ARRAY_SIZE with macro

Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 579e92ff
...@@ -1595,8 +1595,8 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq, ...@@ -1595,8 +1595,8 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq,
} }
cx231xx_info("Enter IF=%zd\n", cx231xx_info("Enter IF=%zd\n",
sizeof(Dif_set_array)/sizeof(struct dif_settings)); ARRAY_SIZE(Dif_set_array));
for (i = 0; i < sizeof(Dif_set_array)/sizeof(struct dif_settings); i++) { for (i = 0; i < ARRAY_SIZE(Dif_set_array); i++) {
if (Dif_set_array[i].if_freq == if_freq) { if (Dif_set_array[i].if_freq == if_freq) {
vid_blk_write_word(dev, vid_blk_write_word(dev,
Dif_set_array[i].register_address, Dif_set_array[i].value); Dif_set_array[i].register_address, Dif_set_array[i].value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment