misc: pm8058-pwm: change a variable name to match its struct name
Signed-off-by: Willie Ruan <wruan@codeaurora.org>
diff --git a/drivers/misc/pmic8058-pwm.c b/drivers/misc/pmic8058-pwm.c
index 059e767..ad03b88 100644
--- a/drivers/misc/pmic8058-pwm.c
+++ b/drivers/misc/pmic8058-pwm.c
@@ -839,7 +839,7 @@
int duty_pct[], int duty_time_ms, int start_idx,
int idx_len, int pause_lo, int pause_hi, int flags)
{
- struct pm8058_pwm_lut pwm_conf;
+ struct pm8058_pwm_lut lut;
int len;
int rc;
@@ -882,14 +882,14 @@
}
after_table_write:
- pwm_conf.lut_duty_ms = duty_time_ms;
- pwm_conf.lut_lo_index = start_idx;
- pwm_conf.lut_hi_index = start_idx + len - 1;
- pwm_conf.lut_pause_lo = pause_lo;
- pwm_conf.lut_pause_hi = pause_hi;
- pwm_conf.flags = flags;
+ lut.lut_duty_ms = duty_time_ms;
+ lut.lut_lo_index = start_idx;
+ lut.lut_hi_index = start_idx + len - 1;
+ lut.lut_pause_lo = pause_lo;
+ lut.lut_pause_hi = pause_hi;
+ lut.flags = flags;
- rc = pm8058_pwm_change_lut(pwm, &pwm_conf);
+ rc = pm8058_pwm_change_lut(pwm, &lut);
out_unlock:
mutex_unlock(&pwm->chip->pwm_mutex);