[0/4] pwm: Some refactoring of pwmchip_add()

Message ID 20221115211515.3750209-1-u.kleine-koenig@pengutronix.de
Headers
Series pwm: Some refactoring of pwmchip_add() |

Message

Uwe Kleine-König Nov. 15, 2022, 9:15 p.m. UTC
  Hello,

this is inspired by a patch suggested by Andy Shevchenko[1] and so it
conflicts with his patch.

Best regards
Uwe

[1] https://lore.kernel.org/linux-pwm/20221114170006.61751-1-andriy.shevchenko@linux.intel.com

Uwe Kleine-König (4):
  pwm: Document variables protected by pwm_lock
  pwm: Reduce time the pwm_lock mutex is held in pwmchip_add()
  pwm: Mark free pwm IDs as used in alloc_pwms()
  pwm: Don't initialize list head before calling list_add()

 drivers/pwm/core.c | 37 +++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 18 deletions(-)


base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780