All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: Move pwm_capture() dummy to restore order
@ 2022-10-25 14:04 Geert Uytterhoeven
  2022-10-26 19:44 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2022-10-25 14:04 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König
  Cc: Biju Das, linux-pwm, Geert Uytterhoeven

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(-)

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;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pwm: Move pwm_capture() dummy to restore order
  2022-10-25 14:04 [PATCH] pwm: Move pwm_capture() dummy to restore order Geert Uytterhoeven
@ 2022-10-26 19:44 ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2022-10-26 19:44 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Thierry Reding, Biju Das, linux-pwm

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

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

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-26 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 14:04 [PATCH] pwm: Move pwm_capture() dummy to restore order Geert Uytterhoeven
2022-10-26 19:44 ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.