Skip to content
Snippets Groups Projects
Commit b98bfeb6 authored by Axel Lin's avatar Axel Lin Committed by Tom Rini
Browse files

hwmon: lm63: Use ARRAY_SIZE at appropriate place


Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
parent 9935175f
No related branches found
No related tags found
No related merge requests found
...@@ -133,8 +133,7 @@ int dtt_init_one(int sensor) ...@@ -133,8 +133,7 @@ int dtt_init_one(int sensor)
/* /*
* Setup PWM Lookup-Table * Setup PWM Lookup-Table
*/ */
for (i = 0; i < sizeof(pwm_lookup) / sizeof(struct pwm_lookup_entry); for (i = 0; i < ARRAY_SIZE(pwm_lookup); i++) {
i++) {
int address = DTT_PWM_LOOKUP_BASE + 2 * i; int address = DTT_PWM_LOOKUP_BASE + 2 * i;
val = pwm_lookup[i].temp; val = pwm_lookup[i].temp;
if (is_lm64(sensor)) if (is_lm64(sensor))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment