-
Uwe Kleine-König authored
The lock is only to serialize access and update to user_count and approx_period between different PWMs served by the same pwm_chip. So the lock needs only to be taken during the check if the (chip global) period can and/or needs to be changed. Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Tested-by:
Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by:
Thierry Reding <thierry.reding@gmail.com>
0f02f491