]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: sifive: Fold pwm_sifive_enable() into its only caller
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 21 Jul 2022 10:31:24 +0000 (12:31 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 29 Jul 2022 11:40:45 +0000 (13:40 +0200)
commit9891dd7234ab7324b425ea3ca216f72d08d73968
tree2dc98a8fb39a9083cf0ecb393b3a421b6d1cc21e
parent43997e3d101d094788e823f0c69296acdca8de6a
pwm: sifive: Fold pwm_sifive_enable() into its only caller

There is only a single caller of pwm_sifive_enable() which only enables
or disables the clk. Put this implementation directly into
pwm_sifive_apply() which allows further simplification in the next
change.

There is no change in behaviour.

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>
drivers/pwm/pwm-sifive.c