[PATCH] mfd: max77705: Make max77705_pm_ops variable static

Krzysztof Kozlowski posted 1 patch 1 month ago
drivers/mfd/max77705.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] mfd: max77705: Make max77705_pm_ops variable static
Posted by Krzysztof Kozlowski 1 month ago
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>
---
 drivers/mfd/max77705.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/max77705.c b/drivers/mfd/max77705.c
index e1a9bfd65856..e98c76d6b699 100644
--- a/drivers/mfd/max77705.c
+++ b/drivers/mfd/max77705.c
@@ -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" },
-- 
2.51.0
Re: (subset) [PATCH] mfd: max77705: Make max77705_pm_ops variable static
Posted by Lee Jones 1 week, 5 days ago
On Mon, 16 Feb 2026 12:04:33 +0100, Krzysztof Kozlowski wrote:
> 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?
> 
> 

Applied, thanks!

[1/1] mfd: max77705: Make max77705_pm_ops variable static
      commit: 5dfbaea2842c8c2416b702a519482922207f5da6

--
Lee Jones [李琼斯]