aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpc18xx-sct.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-07-19 19:20:13 +0000
committerThierry Reding <[email protected]>2023-07-28 07:34:44 +0000
commit28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40 (patch)
tree616edc39595c5a329194dc2e94865ba1cc3c1c96 /drivers/pwm/pwm-lpc18xx-sct.c
parentpwm: atmel-tcb: Unroll atmel_tcb_pwm_set_polarity() into only caller (diff)
downloadkernel-28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40.tar.gz
kernel-28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40.zip
pwm: atmel-tcb: Don't track polarity in driver data
struct atmel_tcb_pwm_device::polarity is only used in atmel_tcb_pwm_enable and atmel_tcb_pwm_disable(). These functions are only called by atmel_tcb_pwm_apply() after the member variable was assigned to state->polarity. So the value assigned in atmel_tcb_pwm_request() is never used and the member can be dropped from struct atmel_tcb_pwm_device. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpc18xx-sct.c')
0 files changed, 0 insertions, 0 deletions