]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pwm: lpss: Only include <linux/pwm.h> where needed
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Thu, 23 Jan 2025 10:39:38 +0000 (11:39 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Tue, 4 Feb 2025 07:23:42 +0000 (08:23 +0100)
Among the three files that include pwm-lpss.h only pwm-lpss.c actually
needs <linux/pwm.h>. So move the #include statement from the former to
the latter.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20250123103939.357160-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-lpss.c
drivers/pwm/pwm-lpss.h

index 3b99feb3bb4918ed4e097b1c03ba012c69b18cf7..5accab033b8bb98ee0c05b970561cd8651da0fd0 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/pm_runtime.h>
+#include <linux/pwm.h>
 #include <linux/time.h>
 
 #define DEFAULT_SYMBOL_NAMESPACE "PWM_LPSS"
index b5267ab5193b6e361a6b64b3c40657810827d192..60792181401ee4115ef8d3f28cfd7a001e5427ba 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef __PWM_LPSS_H
 #define __PWM_LPSS_H
 
-#include <linux/pwm.h>
 #include <linux/types.h>
 
 #include <linux/platform_data/x86/pwm-lpss.h>