Skip to content

Commit 9bb3c7d

Browse files
tititiou36broonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/ebc53d4049ec19796ef07e1bb734de19a2814727.1748103005.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <[email protected]>
1 parent c266209 commit 9bb3c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/tps6594-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static int tps6594_regulator_probe(struct platform_device *pdev)
563563
bool buck_configured[BUCK_NB] = { false };
564564
bool buck_multi[MULTI_PHASE_NB] = { false };
565565

566-
static const char *npname;
566+
const char *npname;
567567
int error, i, irq, multi;
568568
int irq_idx = 0;
569569
int buck_idx = 0;

0 commit comments

Comments
 (0)