Skip to content

Commit f385ec3

Browse files
krzklag-linaro
authored andcommitted
mfd: max77705: Make max77705_pm_ops variable static
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>
1 parent eaa0a41 commit f385ec3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mfd/max77705.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static int max77705_resume(struct device *dev)
157157

158158
return 0;
159159
}
160-
DEFINE_SIMPLE_DEV_PM_OPS(max77705_pm_ops, max77705_suspend, max77705_resume);
160+
static DEFINE_SIMPLE_DEV_PM_OPS(max77705_pm_ops, max77705_suspend, max77705_resume);
161161

162162
static const struct of_device_id max77705_i2c_of_match[] = {
163163
{ .compatible = "maxim,max77705" },

0 commit comments

Comments
 (0)