aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-renesas-tpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-renesas-tpu.c')
-rw-r--r--drivers/leds/leds-renesas-tpu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/leds/leds-renesas-tpu.c b/drivers/leds/leds-renesas-tpu.c
index 9483f1c1078d..adebf4931e1e 100644
--- a/drivers/leds/leds-renesas-tpu.c
+++ b/drivers/leds/leds-renesas-tpu.c
@@ -63,7 +63,7 @@ static DEFINE_SPINLOCK(r_tpu_lock);
63#define TGRC 8 /* Timer general register C (+0x20) */ 63#define TGRC 8 /* Timer general register C (+0x20) */
64#define TGRD 9 /* Timer general register D (+0x24) */ 64#define TGRD 9 /* Timer general register D (+0x24) */
65 65
66static inline unsigned short r_tpu_read(struct r_tpu_priv *p, int reg_nr) 66static inline u16 r_tpu_read(struct r_tpu_priv *p, int reg_nr)
67{ 67{
68 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 68 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
69 void __iomem *base = p->mapbase; 69 void __iomem *base = p->mapbase;
@@ -75,8 +75,7 @@ static inline unsigned short r_tpu_read(struct r_tpu_priv *p, int reg_nr)
75 return ioread16(base + offs); 75 return ioread16(base + offs);
76} 76}
77 77
78static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr, 78static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr, u16 value)
79 unsigned short value)
80{ 79{
81 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 80 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
82 void __iomem *base = p->mapbase; 81 void __iomem *base = p->mapbase;
@@ -93,7 +92,8 @@ static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr,
93static void r_tpu_start_stop_ch(struct r_tpu_priv *p, int start) 92static void r_tpu_start_stop_ch(struct r_tpu_priv *p, int start)
94{ 93{
95 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 94 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
96 unsigned long flags, value; 95 unsigned long flags;
96 u16 value;
97 97
98 /* start stop register shared by multiple timer channels */ 98 /* start stop register shared by multiple timer channels */
99 spin_lock_irqsave(&r_tpu_lock, flags); 99 spin_lock_irqsave(&r_tpu_lock, flags);