Linux PWM subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/5] pwm: atmel-tcb: Some driver maintenance
@ 2023-07-19 19:20 Uwe Kleine-König
  2023-07-19 19:20 ` [PATCH 1/5] pwm: atmel-tcb: Harmonize resource allocation order Uwe Kleine-König
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2023-07-19 19:20 UTC (permalink / raw)
  To: Thierry Reding, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
  Cc: linux-pwm, linux-arm-kernel, kernel

Hello,

here come some improvements to the pwm-atmel-tcb driver.

There are still a few opportunities to improve the driver. For example
.duty shouldn't be relevant for atmel_tcb_pwm_disable(). Also the driver
could be converted from of_clk_get_by_name to devm_clk_get() (and then
also devm_pwmchip_add()). Further more I think all members of
atmel_tcb_pwm_device could be dropped as they are all only used in
.apply() after they were assigned earlier in the same function; similar
to how I removed the polarity member. Maybe someone with the hardware
wants to chime in?

Best regards
Uwe

Uwe Kleine-König (5):
  pwm: atmel-tcb: Harmonize resource allocation order
  pwm: atmel-tcb: Fix resource freeing in error path and remove
  pwm: atmel-tcb: Put per-channel data into driver data
  pwm: atmel-tcb: Unroll atmel_tcb_pwm_set_polarity() into only caller
  pwm: atmel-tcb: Don't track polarity in driver data

 drivers/pwm/pwm-atmel-tcb.c | 120 ++++++++++++++----------------------
 1 file changed, 47 insertions(+), 73 deletions(-)

base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
-- 
2.39.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-07-28  7:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 19:20 [PATCH 0/5] pwm: atmel-tcb: Some driver maintenance Uwe Kleine-König
2023-07-19 19:20 ` [PATCH 1/5] pwm: atmel-tcb: Harmonize resource allocation order Uwe Kleine-König
2023-07-27  6:00   ` claudiu beznea
2023-07-27  7:00     ` Uwe Kleine-König
2023-07-19 19:20 ` [PATCH 2/5] pwm: atmel-tcb: Fix resource freeing in error path and remove Uwe Kleine-König
2023-07-27  6:00   ` claudiu beznea
2023-07-19 19:20 ` [PATCH 3/5] pwm: atmel-tcb: Put per-channel data into driver data Uwe Kleine-König
2023-07-27  5:59   ` claudiu beznea
2023-07-19 19:20 ` [PATCH 4/5] pwm: atmel-tcb: Unroll atmel_tcb_pwm_set_polarity() into only caller Uwe Kleine-König
2023-07-27  5:59   ` claudiu beznea
2023-07-19 19:20 ` [PATCH 5/5] pwm: atmel-tcb: Don't track polarity in driver data Uwe Kleine-König
2023-07-27  5:59   ` claudiu beznea
2023-07-28  7:36 ` [PATCH 0/5] pwm: atmel-tcb: Some driver maintenance Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox