Skip to contentSkip to conversation

pwm: spear: Staticize spear_pwm_config()

PATCH Applied Axel Lin 3 participants 4 messages Nov 9, 2012 PWM

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 pwm: spear: Staticize spear_pwm_config()

spear_pwm_config() is not referenced outside of this file, make it static.

---
 drivers/pwm/pwm-spear.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pwm/pwm-spear.c +2 -2
index 6a8fd9b..83b21d9 100644
@@ -76,8 +76,8 @@ static inline void spear_pwm_writel(struct spear_pwm_chip *chip,
 	writel_relaxed(val, chip->mmio_base + (num << 4) + offset);
 }
 
-int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns,
-		     int period_ns)
+static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
+			    int duty_ns, int period_ns)
 {
 	struct spear_pwm_chip *pc = to_spear_pwm_chip(chip);
 	u64 val, div, clk_rate;
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Axel Lin
Quoted 12 lines · Axel Lin

spear_pwm_config() is not referenced outside of this file, make it static.

---
 drivers/pwm/pwm-spear.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pwm/pwm-spear.c +0 -0
index 6a8fd9b..83b21d9 100644

drivers/pwm/pwm-spear.c static inline void spear_pwm_writel(struct spear_pwm_chip *chip, · line 83

Quoted 10 lines
drivers/pwm/pwm-spear.c +2 -2
@@ -76,8 +76,8 @@ static inline void spear_pwm_writel(struct spear_pwm_chip *chip,
 	writel_relaxed(val, chip->mmio_base + (num << 4) + offset);
 }
 
-int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns,
-		     int period_ns)
+static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
+			    int duty_ns, int period_ns)
 {
 	struct spear_pwm_chip *pc = to_spear_pwm_chip(chip);
 	u64 val, div, clk_rate;

Applied, thanks.

Thierry

#3 lore raw
Quoted 1 line · Thierry Reding

Applied, thanks.

Aah.. That's pretty fast :)
within 5 minutes of posting the patch you got ACK and got applied too :)

--
viresh