pwm: Move pwm_capture() dummy to restore order
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 21 Nov 2022 16:15:41 +0000 (17:15 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2023 15:42:45 +0000 (16:42 +0100)
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>
include/linux/pwm.h

index 161e91167b9c01de182731803d1d5e898ccd5e68..7b7b93b6fb81ad7138fa43750783822832da6035 100644 (file)
@@ -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;