diff options
author | Wolfram Sang <wsa@sang-engineering.com> | 2014-04-02 13:56:22 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-05-21 11:51:26 +0200 |
commit | 3ea57ea6691241ccdf58d9735f85e49b6174990c (patch) | |
tree | 4229e73fd8ea4e4ac7325b1193d84761693dca14 /drivers/pwm | |
parent | af5935ec125ef85823ea43fbcfdd3c15b532d199 (diff) | |
download | linux-3ea57ea6691241ccdf58d9735f85e49b6174990c.tar.gz linux-3ea57ea6691241ccdf58d9735f85e49b6174990c.tar.bz2 linux-3ea57ea6691241ccdf58d9735f85e49b6174990c.zip |
pwm: tiehrpwm: inline accessor functions
These elementary functions should be inlined for fastest access. Also
fixes this warning as a side-effect (when no PM_SLEEP is selected):
drivers/pwm/pwm-tiehrpwm.c:141:12: warning: 'ehrpwm_read' defined but not used [-Wunused-function]
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-tiehrpwm.c | 4 |
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) return container_of(chip, struct ehrpwm_pwm_chip, chip); } -static u16 ehrpwm_read(void __iomem *base, int offset) +static inline u16 ehrpwm_read(void __iomem *base, int offset) { return readw(base + offset); } -static void ehrpwm_write(void __iomem *base, int offset, unsigned int val) +static inline void ehrpwm_write(void __iomem *base, int offset, unsigned int val) { writew(val & 0xFFFF, base + offset); } |