From: Jim Cromie Date: Tue, 10 Apr 2012 23:55:40 +0000 (-0300) Subject: [media] cx231xx: replace open-coded ARRAY_SIZE with macro X-Git-Tag: v3.5-rc5~26^2~163 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=272ed119d7cb60d0a817786f555eccb2d87c0c69;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [media] cx231xx: replace open-coded ARRAY_SIZE with macro Signed-off-by: Jim Cromie Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c index 6e4bca2..b085a3c 100644 --- a/drivers/media/video/cx231xx/cx231xx-avcore.c +++ b/drivers/media/video/cx231xx/cx231xx-avcore.c @@ -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);