]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
regulator: qcom-smd: make smd_vreg_rpm static
authorMin-Hua Chen <minhuadotchen@gmail.com>
Thu, 26 Sep 2024 23:10:36 +0000 (07:10 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:11:44 +0000 (01:11 +0200)
Since smd_vreg_rpm is used only in
drivers/regulator/qcom_smd-regulator.c, make it static and fix the
following sparse warning:

drivers/regulator/qcom_smd-regulator.c:14:21: sparse: warning:
symbol 'smd_vreg_rpm' was not declared. Should it be static?

No functional changes intended.

Fixes: 5df3b41bd6b5 ("regulator: qcom_smd: Keep one rpm handle for all vregs")
Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patch.msgid.link/20240926231038.31916-1-minhuadotchen@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_smd-regulator.c

index 28e7ce60cb617cd9da9c0a1633b547d3cbd901e5..25ed9f713974ba25058c9dbf38d36e88f70a940b 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/regulator/of_regulator.h>
 #include <linux/soc/qcom/smd-rpm.h>
 
-struct qcom_smd_rpm *smd_vreg_rpm;
+static struct qcom_smd_rpm *smd_vreg_rpm;
 
 struct qcom_rpm_reg {
        struct device *dev;