From: Ahmed S. Darwish Date: Mon, 12 Feb 2007 08:52:05 +0000 (-0800) Subject: [PATCH] w1: Use ARRAY_SIZE macro when appropriate X-Git-Tag: upstream/snapshot3+hdmi~35810^2~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d0094de6dfda8209241787d99f531356469d0f5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [PATCH] w1: Use ARRAY_SIZE macro when appropriate A patch to use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish Acked-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c index b022fff..732db47 100644 --- a/drivers/w1/slaves/w1_therm.c +++ b/drivers/w1/slaves/w1_therm.c @@ -141,7 +141,7 @@ static inline int w1_convert_temp(u8 rom[9], u8 fid) { int i; - for (i=0; ifid == fid) return w1_therm_families[i].convert(rom); @@ -238,7 +238,7 @@ static int __init w1_therm_init(void) { int err, i; - for (i=0; i