summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-23 00:55:14 +0800
committerTom Rini <trini@ti.com>2013-06-26 10:26:06 -0400
commitb98bfeb6674bd33effe9e093f071e7eeb3174f2e (patch)
treecbbd0ef80d72593047d793bf1463d3a01e267ef9 /drivers
parent9935175f50398929d83f4af98a7491fcdcbd46c9 (diff)
downloadu-boot-imx-b98bfeb6674bd33effe9e093f071e7eeb3174f2e.zip
u-boot-imx-b98bfeb6674bd33effe9e093f071e7eeb3174f2e.tar.gz
u-boot-imx-b98bfeb6674bd33effe9e093f071e7eeb3174f2e.tar.bz2
hwmon: lm63: Use ARRAY_SIZE at appropriate place
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/lm63.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index f3adf64..bb8e644 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -133,8 +133,7 @@ int dtt_init_one(int sensor)
/*
* Setup PWM Lookup-Table
*/
- for (i = 0; i < sizeof(pwm_lookup) / sizeof(struct pwm_lookup_entry);
- i++) {
+ for (i = 0; i < ARRAY_SIZE(pwm_lookup); i++) {
int address = DTT_PWM_LOOKUP_BASE + 2 * i;
val = pwm_lookup[i].temp;
if (is_lm64(sensor))