diff options
| author | Min-Hua Chen <minhuadotchen@gmail.com> | 2024-09-27 07:10:36 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:01:24 +0100 |
| commit | 7b6f8e75f144f6fe63d8f4e0b8a9affb4373105f (patch) | |
| tree | 6843f397f9c05f6fe4e9a7002ee7a41813c90fd9 /drivers/regulator | |
| parent | 285a07810ab3bcedc2bd380ebacbf6b4942a889a (diff) | |
| download | linux-7b6f8e75f144f6fe63d8f4e0b8a9affb4373105f.tar.gz linux-7b6f8e75f144f6fe63d8f4e0b8a9affb4373105f.tar.bz2 linux-7b6f8e75f144f6fe63d8f4e0b8a9affb4373105f.zip | |
regulator: qcom-smd: make smd_vreg_rpm static
[ Upstream commit 18be43aca2c0ec475037923a8086d0a29fcc9d16 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/regulator')
| -rw-r--r-- | drivers/regulator/qcom_smd-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c index 28e7ce60cb61..25ed9f713974 100644 --- a/drivers/regulator/qcom_smd-regulator.c +++ b/drivers/regulator/qcom_smd-regulator.c @@ -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; |
