]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: hisi_termal: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorHesham Almatary <hesham.almatary@huawei.com>
Thu, 24 Mar 2022 10:34:43 +0000 (10:34 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 14:37:28 +0000 (16:37 +0200)
commit2840aa4dbef2da9796d1d6c372f72dece07e59f8
treed4aca09877058c96e553f1b81bc414dd53d268e3
parentef8e7cd3bfb3e514a5772f2c5874cf0913238d68
thermal: hisi_termal: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()

Cleaning up the driver to use pm_sleep_ptr() macro instead of #ifdef
guards is simpler and allows the compiler to remove those functions
if built without CONFIG_PM_SLEEP support.

Signed-off-by: Hesham Almatary <hesham.almatary@huawei.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/hisi_thermal.c