]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33f5e0d9b3fe6830b59c005b1bbefcb7e3c05147
treea280765f430efae69700c6e109440f3b68c5aada
parent1ae8895031b8bfb6d69cc9d5e1d3f8c0573ba381
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