* [PATCH -next] regulator: max77857: change some variables to static
@ 2023-08-01 13:03 Yang Yingliang
2023-08-01 16:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2023-08-01 13:03 UTC (permalink / raw)
To: linux-kernel; +Cc: lgirdwood, broonie, okan.sahin, yangyingliang
max77857_regmap_config and max77857_driver are only used
in max77857-regulator.c now, change them to static.
Fixes: af71cccadeced ("regulator: max77857: Add ADI MAX77857/59/MAX77831 Regulator Support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
drivers/regulator/max77857-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/max77857-regulator.c b/drivers/regulator/max77857-regulator.c
index 58f825d8d2b0..f2141b5be780 100644
--- a/drivers/regulator/max77857-regulator.c
+++ b/drivers/regulator/max77857-regulator.c
@@ -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,
.val_bits = 8,
.cache_type = REGCACHE_MAPLE,
@@ -443,7 +443,7 @@ static const struct of_device_id max77857_of_id[] = {
};
MODULE_DEVICE_TABLE(of, max77857_of_id);
-struct i2c_driver max77857_driver = {
+static struct i2c_driver max77857_driver = {
.driver = {
.name = "max77857",
.of_match_table = max77857_of_id,
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] regulator: max77857: change some variables to static
2023-08-01 13:03 [PATCH -next] regulator: max77857: change some variables to static Yang Yingliang
@ 2023-08-01 16:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-08-01 16:54 UTC (permalink / raw)
To: linux-kernel, Yang Yingliang; +Cc: lgirdwood, okan.sahin
On Tue, 01 Aug 2023 21:03:54 +0800, Yang Yingliang wrote:
> max77857_regmap_config and max77857_driver are only used
> in max77857-regulator.c now, change them to static.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: max77857: change some variables to static
commit: 39b5ba6cb56962d2ac83e4dd89f68538f7861efe
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-01 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 13:03 [PATCH -next] regulator: max77857: change some variables to static Yang Yingliang
2023-08-01 16:54 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®