diff options
| author | Uwe Kleine-König <[email protected]> | 2023-07-19 19:20:13 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2023-07-28 07:34:44 +0000 |
| commit | 28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40 (patch) | |
| tree | 616edc39595c5a329194dc2e94865ba1cc3c1c96 /drivers/pwm/pwm-lpc18xx-sct.c | |
| parent | pwm: atmel-tcb: Unroll atmel_tcb_pwm_set_polarity() into only caller (diff) | |
| download | kernel-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
