pwm: atmel-tcb: Don't track polarity in driver data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 19 Jul 2023 19:20:13 +0000 (21:20 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 07:34:44 +0000 (09:34 +0200)
commit28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40
tree616edc39595c5a329194dc2e94865ba1cc3c1c96
parent9a6ac822a2153d583b0da95b8693e954b5f4203a
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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-tcb.c