* [PATCH] PWM: core: make pwm.h header self-contained
@ 2024-09-11 8:17 Ahmad Fatoum
2024-09-11 8:30 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-09-11 8:17 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
The file has references to DIV_ROUND_CLOSEST_ULL and struct device_node,
which so far only worked because of headers previously included.
Fix this to make the header self-contained.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/pwm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/pwm.h b/include/pwm.h
index b90ac1de4220..e3a432b85252 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -3,8 +3,10 @@
#define __PWM_H
#include <dt-bindings/pwm/pwm.h>
+#include <linux/math.h>
#include <errno.h>
+struct device_node;
struct pwm_device;
struct device;
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PWM: core: make pwm.h header self-contained
2024-09-11 8:17 [PATCH] PWM: core: make pwm.h header self-contained Ahmad Fatoum
@ 2024-09-11 8:30 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-09-11 8:30 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Wed, 11 Sep 2024 10:17:22 +0200, Ahmad Fatoum wrote:
> The file has references to DIV_ROUND_CLOSEST_ULL and struct device_node,
> which so far only worked because of headers previously included.
>
> Fix this to make the header self-contained.
>
>
Applied, thanks!
[1/1] PWM: core: make pwm.h header self-contained
https://git.pengutronix.de/cgit/barebox/commit/?id=dcec91fd3a4b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-11 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-11 8:17 [PATCH] PWM: core: make pwm.h header self-contained Ahmad Fatoum
2024-09-11 8:30 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox