* [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
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