diff mbox series

pwm: Move pwm_capture() dummy to restore order

Message ID 08a02c91eec1874ffd3ad7b8388ec7219686204c.1666706633.git.geert+renesas@glider.be
State Superseded
Headers show
Series pwm: Move pwm_capture() dummy to restore order | expand

Commit Message

Geert Uytterhoeven Oct. 25, 2022, 2:04 p.m. UTC
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>
---
 include/linux/pwm.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Uwe Kleine-König Oct. 26, 2022, 7:44 p.m. UTC | #1
Hello Geert,

On Tue, Oct 25, 2022 at 04:04:23PM +0200, Geert Uytterhoeven wrote:
> 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>

Thanks
Uwe
diff mbox series

Patch

diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index bba492eea96c5552..991ecfe1a85d3a98 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;