summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2026-01-12 15:49:09 +0000
committerMark Brown <broonie@kernel.org>2026-01-12 16:23:16 +0000
commit09dc08b396c954820f119e1ab0c7d72333c18323 (patch)
tree3f7643a9e215c2f1d8a9b55cb11a59846a8310fd /drivers/regulator
parent6eb6b62f002f1cbc538c2e773539d1d4c37749cb (diff)
downloadlwn-09dc08b396c954820f119e1ab0c7d72333c18323.tar.gz
lwn-09dc08b396c954820f119e1ab0c7d72333c18323.zip
regulator: dummy, make dummy_regulator_driver static
When converting to faux_device the dummy_regulator_driver was made non-static however it isn't exported or defined anywhere outside the file it is in. Make it static to avoid the following sparse warning: drivers/regulator/dummy.c:59:24: warning: symbol 'dummy_regulator_driver' was not declared. Should it be static? Fixes: dcd2a9a5550ef556c8 ("regulator: dummy: convert to use the faux device interface") Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://patch.msgid.link/20260112154909.601987-1-ben.dooks@codethink.co.uk Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/dummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c
index e5197ec7234d..c3e416fd3c3e 100644
--- a/drivers/regulator/dummy.c
+++ b/drivers/regulator/dummy.c
@@ -56,7 +56,7 @@ static int dummy_regulator_probe(struct faux_device *fdev)
return 0;
}
-struct faux_device_ops dummy_regulator_driver = {
+static struct faux_device_ops dummy_regulator_driver = {
.probe = dummy_regulator_probe,
};