mfd: intel_soc_pmic_chtdc_ti: Switch from __maybe_unused to pm_sleep_ptr() etc
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 6 Sep 2022 13:42:56 +0000 (16:42 +0300)
committerLee Jones <lee@kernel.org>
Wed, 28 Sep 2022 15:17:41 +0000 (16:17 +0100)
commit1801c448d48405b1bfe7093f2ddc5461962521fa
treea280765f430efae69700c6e109440f3b68c5aada
parent3064c115bcb5165793366d348a7efc70d32b82e5
mfd: intel_soc_pmic_chtdc_ti: Switch from __maybe_unused to pm_sleep_ptr() etc

Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less heavier for builds
than the use of __maybe_unused attributes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220906134256.14293-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/intel_soc_pmic_chtdc_ti.c