diff options
author | Yue Haibing <yuehaibing@huawei.com> | 2024-08-01 19:45:36 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-01 12:50:10 +0100 |
commit | cd7d47c5762997a2b1de57a47cd48a1cdad38d96 (patch) | |
tree | d1982b145d1e977f4d569dc7d63957dd1eff1166 /drivers/regulator | |
parent | 3078425f63c5f526c8d2cb0b7ef9e0a3f50c9c39 (diff) |
regulator: max77857: Make max77857_id static
Fix sparse warning:
drivers/regulator/max77857-regulator.c:430:28: warning: symbol 'max77857_id' was not declared. Should it be static?
max77857_id is not used outside the source file. Make it static.
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://patch.msgid.link/20240801114536.472796-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max77857-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77857-regulator.c b/drivers/regulator/max77857-regulator.c index bc28dc8503a8..1216cc3a6f72 100644 --- a/drivers/regulator/max77857-regulator.c +++ b/drivers/regulator/max77857-regulator.c @@ -427,7 +427,7 @@ static int max77857_probe(struct i2c_client *client) return 0; } -const struct i2c_device_id max77857_id[] = { +static const struct i2c_device_id max77857_id[] = { { "max77831", ID_MAX77831 }, { "max77857", ID_MAX77857 }, { "max77859", ID_MAX77859 }, |