All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 03/11] cx231xx: replace open-coded ARRAY_SIZE with macro
@ 2012-04-11  0:55 Jim Cromie
  0 siblings, 0 replies; only message in thread
From: Jim Cromie @ 2012-04-11  0:55 UTC (permalink / raw)
  To: linux-media, mchehab; +Cc: trivial, Jim Cromie


Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
 drivers/media/video/cx231xx/cx231xx-avcore.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c
index 53ff26e..460d148 100644
--- a/drivers/media/video/cx231xx/cx231xx-avcore.c
+++ b/drivers/media/video/cx231xx/cx231xx-avcore.c
@@ -1606,8 +1606,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) {
 			status = vid_blk_write_word(dev,
 			Dif_set_array[i].register_address, Dif_set_array[i].value);
-- 
1.7.8.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-11  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  0:55 [PATCH 03/11] cx231xx: replace open-coded ARRAY_SIZE with macro Jim Cromie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.