mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
thermal: qcom: tsens-8916: mark PM functions __maybe_unused
The newly added tsens-8916 driver produces warnings when CONFIG_PM
is disabled:
drivers/thermal/qcom/tsens.c:53:12: error: 'tsens_resume' defined but not used [-Werror=unused-function]
static int tsens_resume(struct device *dev)
^~~~~~~~~~~~
drivers/thermal/qcom/tsens.c:43:12: error: 'tsens_suspend' defined but not used [-Werror=unused-function]
static int tsens_suspend(struct device *dev)
^~~~~~~~~~~~~
This marks both functions __maybe_unused to let the compiler
know that they might be used in other configurations, without
adding ugly #ifdef logic.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Rajendra Nayak <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
43528445f6
commit
5b97469a55
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ static int tsens_get_trend(void *p, int trip, enum thermal_trend *trend)
|
|||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static int tsens_suspend(struct device *dev)
|
||||
static int __maybe_unused tsens_suspend(struct device *dev)
|
||||
{
|
||||
struct tsens_device *tmdev = dev_get_drvdata(dev);
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ static int tsens_suspend(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tsens_resume(struct device *dev)
|
||||
static int __maybe_unused tsens_resume(struct device *dev)
|
||||
{
|
||||
struct tsens_device *tmdev = dev_get_drvdata(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue