mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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: dcd2a9a555 ("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>
This commit is contained in:
parent
6eb6b62f00
commit
09dc08b396
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue