Skip to contentSkip to conversation

regulator: Make clkin_name and xin_name static

PATCH In review GUO Zihua 2 participants 3 messages Aug 7, 2023 – Aug 8, 2023 Voltage and current regulator framework

lore
Share & tools
lore

GUO Zihua

author
#0 lore raw

PATCH v2 1/1 regulator: Make clkin_name and xin_name static

clkin_name and xin_name is not referred elsewhere, so make them static.

---

v2:
Re-formatted patch and tested on the most current master.

---
 drivers/regulator/raa215300.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/regulator/raa215300.c +2 -2
index 24a1c89f5dbc..d21c6c207226 100644
@@ -38,8 +38,8 @@
 #define RAA215300_REG_BLOCK_EN_RTC_EN	BIT(6)
 #define RAA215300_RTC_DEFAULT_ADDR	0x6f
 
-const char *clkin_name = "clkin";
-const char *xin_name = "xin";
+static const char *clkin_name = "clkin";
+static const char *xin_name = "xin";
 static struct clk *clk;
 
 static const struct regmap_config raa215300_regmap_config = {
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 7 lines · GUO Zihua

clkin_name and xin_name is not referred elsewhere, so make them static.

---

v2:
Re-formatted patch and tested on the most current master.

This still doesn't apply against my current tree, please check and resend. It should apply against the for-6.6 branch.

#2 lore raw
Quoted 11 lines · Mark Brown
Quoted 7 lines · GUO Zihua

clkin_name and xin_name is not referred elsewhere, so make them static.

---

v2:
Re-formatted patch and tested on the most current master.

This still doesn't apply against my current tree, please check and resend. It should apply against the for-6.6 branch.

Hi Mark,

This patch does not seems to be needed on next anymore. Please ignore it and thanks for your time!

Signature · 2 lines
Best
GUO Zihua