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

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>

authored by

Christophe JAILLET and committed by
Mark Brown
9bb3c7df c266209e

+1 -1
+1 -1
drivers/regulator/tps6594-regulator.c
··· 563 563 bool buck_configured[BUCK_NB] = { false }; 564 564 bool buck_multi[MULTI_PHASE_NB] = { false }; 565 565 566 - static const char *npname; 566 + const char *npname; 567 567 int error, i, irq, multi; 568 568 int irq_idx = 0; 569 569 int buck_idx = 0;