Skip to content

Commit 09dc08b

Browse files
bjdooks-ctbroonie
authored andcommitted
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: dcd2a9a ("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>
1 parent 6eb6b62 commit 09dc08b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/dummy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int dummy_regulator_probe(struct faux_device *fdev)
5656
return 0;
5757
}
5858

59-
struct faux_device_ops dummy_regulator_driver = {
59+
static struct faux_device_ops dummy_regulator_driver = {
6060
.probe = dummy_regulator_probe,
6161
};
6262

0 commit comments

Comments
 (0)