Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yue Haibing and committed by
Mark Brown
cd7d47c5 3078425f

+1 -1
+1 -1
drivers/regulator/max77857-regulator.c
··· 427 427 return 0; 428 428 } 429 429 430 - const struct i2c_device_id max77857_id[] = { 430 + static const struct i2c_device_id max77857_id[] = { 431 431 { "max77831", ID_MAX77831 }, 432 432 { "max77857", ID_MAX77857 }, 433 433 { "max77859", ID_MAX77859 },