aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-tiehrpwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index f5e371dc4e50..cb75133085a8 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -138,12 +138,12 @@ static inline struct ehrpwm_pwm_chip *to_ehrpwm_pwm_chip(struct pwm_chip *chip)
138 return container_of(chip, struct ehrpwm_pwm_chip, chip); 138 return container_of(chip, struct ehrpwm_pwm_chip, chip);
139} 139}
140 140
141static u16 ehrpwm_read(void __iomem *base, int offset) 141static inline u16 ehrpwm_read(void __iomem *base, int offset)
142{ 142{
143 return readw(base + offset); 143 return readw(base + offset);
144} 144}
145 145
146static void ehrpwm_write(void __iomem *base, int offset, unsigned int val) 146static inline void ehrpwm_write(void __iomem *base, int offset, unsigned int val)
147{ 147{
148 writew(val & 0xFFFF, base + offset); 148 writew(val & 0xFFFF, base + offset);
149} 149}