aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-05-24 18:10:39 +0200
committerMark Brown <broonie@kernel.org>2025-06-08 23:35:14 +0100
commit9bb3c7df546aac38ea64c736a839ef2c75297631 (patch)
treef1389e5a02976b25707b3e08719d490e616d34f1
parentregulator: tps6594-regulator: Constify struct tps6594_regulator_irq_type (diff)
downloadlinux-9bb3c7df546aac38ea64c736a839ef2c75297631.tar.gz
linux-9bb3c7df546aac38ea64c736a839ef2c75297631.zip
regulator: tps6594-regulator: Remove a useless static qualifier
There is no point in having 'npname' a static variable. So remove the static qualifier. This is cleaner and saves a few bytes. On a x86_64, with allmodconfig: Before: ====== text data bss dec hex filename 27949 12176 64 40189 9cfd drivers/regulator/tps6594-regulator.o After: ===== text data bss dec hex filename 27947 12112 0 40059 9c7b drivers/regulator/tps6594-regulator.o Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://patch.msgid.link/ebc53d4049ec19796ef07e1bb734de19a2814727.1748103005.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/tps6594-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6594-regulator.c b/drivers/regulator/tps6594-regulator.c
index 0193efb5dffa..51264c869aa0 100644
--- a/drivers/regulator/tps6594-regulator.c
+++ b/drivers/regulator/tps6594-regulator.c
@@ -563,7 +563,7 @@ static int tps6594_regulator_probe(struct platform_device *pdev)
bool buck_configured[BUCK_NB] = { false };
bool buck_multi[MULTI_PHASE_NB] = { false };
- static const char *npname;
+ const char *npname;
int error, i, irq, multi;
int irq_idx = 0;
int buck_idx = 0;