diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2022-11-21 17:15:41 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-01-30 16:42:45 +0100 |
commit | b3c650ad9bb88ecf36b9aeacf9e7eb7478258da7 (patch) | |
tree | b75ea8363acb2962418ced6d48521e28fd17635e /include/linux/pwm.h | |
parent | 334c7b13d38321e47d1a51dba0bef9f4c403ec75 (diff) | |
download | lwn-b3c650ad9bb88ecf36b9aeacf9e7eb7478258da7.tar.gz lwn-b3c650ad9bb88ecf36b9aeacf9e7eb7478258da7.zip |
pwm: Move pwm_capture() dummy to restore order
Move the dummy pwm_capture(), to make the declaration order of all
dummies to match the declaration order of the real functions.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r-- | include/linux/pwm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 161e91167b9c..7b7b93b6fb81 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -440,13 +440,6 @@ static inline int pwm_config(struct pwm_device *pwm, int duty_ns, return -EINVAL; } -static inline int pwm_capture(struct pwm_device *pwm, - struct pwm_capture *result, - unsigned long timeout) -{ - return -EINVAL; -} - static inline int pwm_enable(struct pwm_device *pwm) { might_sleep(); @@ -458,6 +451,13 @@ static inline void pwm_disable(struct pwm_device *pwm) might_sleep(); } +static inline int pwm_capture(struct pwm_device *pwm, + struct pwm_capture *result, + unsigned long timeout) +{ + return -EINVAL; +} + static inline int pwm_set_chip_data(struct pwm_device *pwm, void *data) { return -EINVAL; |