Skip to content

Commit 18be43a

Browse files
Min-Huabroonie
authored andcommitted
regulator: qcom-smd: make smd_vreg_rpm static
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: 5df3b41 ("regulator: qcom_smd: Keep one rpm handle for all vregs") Signed-off-by: Min-Hua Chen <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7368e9f commit 18be43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/qcom_smd-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/regulator/of_regulator.h>
1212
#include <linux/soc/qcom/smd-rpm.h>
1313

14-
struct qcom_smd_rpm *smd_vreg_rpm;
14+
static struct qcom_smd_rpm *smd_vreg_rpm;
1515

1616
struct qcom_rpm_reg {
1717
struct device *dev;

0 commit comments

Comments
 (0)