[PATCH -next] regulator: Make clkin_name and xin_name static

GUO Zihua posted 1 patch 2 years, 6 months ago
There is a newer version of this series
drivers/regulator/raa215300.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH -next] regulator: Make clkin_name and xin_name static
Posted by GUO Zihua 2 years, 6 months ago
clkin_name and xin_name is not referred elsewhere, so make them static.

Signed-off-by: GUO Zihua <guozihua@huawei.com>
---
 drivers/regulator/raa215300.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/raa215300.c b/drivers/regulator/raa215300.c
index 24a1c89f5dbc..d21c6c207226 100644
--- a/drivers/regulator/raa215300.c
+++ b/drivers/regulator/raa215300.c
@@ -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 = {
-- 
2.17.1
Re: [PATCH -next] regulator: Make clkin_name and xin_name static
Posted by Mark Brown 2 years, 6 months ago
On Fri, Aug 04, 2023 at 04:46:34PM +0800, GUO Zihua wrote:
> clkin_name and xin_name is not referred elsewhere, so make them static.
> 
> Signed-off-by: GUO Zihua <guozihua@huawei.com>

This doesn't apply against current code, please check and resend.
Re: [PATCH -next] regulator: Make clkin_name and xin_name static
Posted by Guozihua (Scott) 2 years, 6 months ago
On 2023/8/4 20:29, Mark Brown wrote:
> On Fri, Aug 04, 2023 at 04:46:34PM +0800, GUO Zihua wrote:
>> clkin_name and xin_name is not referred elsewhere, so make them static.
>>
>> Signed-off-by: GUO Zihua <guozihua@huawei.com>
> 
> This doesn't apply against current code, please check and resend.

Hi Mark,

I re-made the patch against the latest master and sent a v2, Thanks!

-- 
Best
GUO Zihua