Linux PWM subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] pwm: Use guards instead of explicity mutex_lock + mutex_unlock
@ 2024-06-27 20:31 Uwe Kleine-König
  2024-06-27 20:31 ` [PATCH 1/3] pwm: Use guards for pwm_lock " Uwe Kleine-König
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-06-27 20:31 UTC (permalink / raw)
  To: linux-pwm

Hello,

I consider this a nice cleanup. It makes the code more compact and it's less
prone to error, because you cannot forget an unlock in an error path.

Best regards
Uwe

Uwe Kleine-König (3):
  pwm: Use guards for pwm_lock instead of explicity mutex_lock + mutex_unlock
  pwm: Use guards for export->lock instead of explicity mutex_lock + mutex_unlock
  pwm: Use guards for pwm_lookup_lock instead of explicity mutex_lock + mutex_unlock

 drivers/pwm/core.c | 128 +++++++++++++++++----------------------------
 1 file changed, 48 insertions(+), 80 deletions(-)

base-commit: 888564d8d708d1c91900ed3a11761f46297fd748
-- 
2.43.0


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

end of thread, other threads:[~2024-07-05 10:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 20:31 [PATCH 0/3] pwm: Use guards instead of explicity mutex_lock + mutex_unlock Uwe Kleine-König
2024-06-27 20:31 ` [PATCH 1/3] pwm: Use guards for pwm_lock " Uwe Kleine-König
2024-06-27 20:31 ` [PATCH 2/3] pwm: Use guards for export->lock " Uwe Kleine-König
2024-06-27 20:31 ` [PATCH 3/3] pwm: Use guards for pwm_lookup_lock " Uwe Kleine-König
2024-07-05 10:24 ` [PATCH 0/3] pwm: Use guards " Uwe Kleine-König

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