mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
hwmon: lm63: Use ARRAY_SIZE at appropriate place
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
9935175f50
commit
b98bfeb667
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue