regulator: max77857: change some variables to static
max77857_regmap_config and max77857_driver are only used
in max77857-regulator.c now, change them to static.
Fixes: af71cccade
("regulator: max77857: Add ADI MAX77857/59/MAX77831 Regulator Support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230801130354.552243-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9349f564f9
commit
39b5ba6cb5
@ -67,7 +67,7 @@ static bool max77857_volatile_reg(struct device *dev, unsigned int reg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct regmap_config max77857_regmap_config = {
|
static struct regmap_config max77857_regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 8,
|
.val_bits = 8,
|
||||||
.cache_type = REGCACHE_MAPLE,
|
.cache_type = REGCACHE_MAPLE,
|
||||||
@ -443,7 +443,7 @@ static const struct of_device_id max77857_of_id[] = {
|
|||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, max77857_of_id);
|
MODULE_DEVICE_TABLE(of, max77857_of_id);
|
||||||
|
|
||||||
struct i2c_driver max77857_driver = {
|
static struct i2c_driver max77857_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "max77857",
|
.name = "max77857",
|
||||||
.of_match_table = max77857_of_id,
|
.of_match_table = max77857_of_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user