]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: Use guards for pwm_lookup_lock instead of explicity mutex_lock + mutex_unlock
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Thu, 27 Jun 2024 20:31:21 +0000 (22:31 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Wed, 10 Jul 2024 15:53:52 +0000 (17:53 +0200)
commit0007fa1292a24ef23d662ec7afe178088ab7766d
tree653fef6a624d26e6ec2b8cc7952dbf7a340e68ad
parent4c50c71c6995a2546eedc36f8bd99fadd7883a46
pwm: Use guards for pwm_lookup_lock instead of explicity mutex_lock + mutex_unlock

With the compiler caring for unlocking the mutex several functions can
be simplified. Benefit from that.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/28807cb5d9dbce66860f74829c0f57cd9c01373e.1719520143.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/core.c