Skip to content

Commit 7fdbc5b

Browse files
ukleineknunojsa
authored andcommitted
pwm: axi-pwmgen: Drop assignment of pwm->state in .apply()
pwm->state is owned by the pwm core, drivers are not supposed to modify it. Apart from that pwm_apply_state() does pwm->state = *state; so the time_unit is cared for properly there. Drop the assignment. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 671f159 commit 7fdbc5b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pwm/pwm-axi-pwmgen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ static int axi_pwmgen_apply(struct pwm_chip *chip, struct pwm_device *pwm,
135135

136136
/* Apply the new config */
137137
axi_pwmgen_write(pwmgen, AXI_PWMGEN_REG_CONFIG, AXI_PWMGEN_LOAD_CONIG);
138-
pwm->state.time_unit = state->time_unit;
139138

140139
return 0;
141140
}

0 commit comments

Comments
 (0)