]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mfd: max77705: Make max77705_pm_ops variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:04:33 +0000 (12:04 +0100)
committerLee Jones <lee@kernel.org>
Wed, 25 Mar 2026 12:44:51 +0000 (12:44 +0000)
File-scope 'max77705_pm_ops' is not used outside of this unit, so make
it static to silence sparse warning:

  max77705.c:160:1: warning: symbol 'max77705_pm_ops' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260216110432.160084-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/max77705.c

index e1a9bfd65856034f35309c79741c89a87be82f25..e98c76d6b699061c97a9fd80d42eb81de7b6bcab 100644 (file)
@@ -157,7 +157,7 @@ static int max77705_resume(struct device *dev)
 
        return 0;
 }
-DEFINE_SIMPLE_DEV_PM_OPS(max77705_pm_ops, max77705_suspend, max77705_resume);
+static DEFINE_SIMPLE_DEV_PM_OPS(max77705_pm_ops, max77705_suspend, max77705_resume);
 
 static const struct of_device_id max77705_i2c_of_match[] = {
        { .compatible = "maxim,max77705" },