diff options
| author | Uwe Kleine-König <[email protected]> | 2022-12-02 18:35:11 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-12-06 11:46:06 +0000 |
| commit | 4034e5944884dca1673e52cc392b07d0d35b6ff0 (patch) | |
| tree | 44bb994f69bcf77b9231811ecc1a66e65b6fb69d /drivers/pwm/pwm-stm32.c | |
| parent | pwm: Reduce time the pwm_lock mutex is held in pwmchip_add() (diff) | |
| download | kernel-4034e5944884dca1673e52cc392b07d0d35b6ff0.tar.gz kernel-4034e5944884dca1673e52cc392b07d0d35b6ff0.zip | |
pwm: Mark free pwm IDs as used in alloc_pwms()
alloc_pwms() only identified a free range of IDs and this range was marked
as used only later by pwmchip_add(). Instead let alloc_pwms() already do
the marking (which makes the function actually allocating the range and so
justifies the function name). This way access to the allocated_pwms
bitfield is limited to two functions only.
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions
