]> Git Repo - linux.git/commitdiff
pwm: lpss: Include headers we are the direct user of
authorAndy Shevchenko <[email protected]>
Thu, 17 Nov 2022 11:08:02 +0000 (13:08 +0200)
committerAndy Shevchenko <[email protected]>
Tue, 22 Nov 2022 14:36:27 +0000 (16:36 +0200)
For the sake of integrity, include headers we are the direct
user of.

Replace the inclusion of device.h by a forward declaration
of struct device plus a (cheaper) of types.h as device.h is
an expensive include (measured in compiler effort).

Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
drivers/pwm/pwm-lpss.h

index 2c746c51b8831f510fe8ba86a60cf6c66fbc567a..4ce6daa46ca8c706f1adf50a1112731af3c7bf96 100644 (file)
 #ifndef __PWM_LPSS_H
 #define __PWM_LPSS_H
 
-#include <linux/device.h>
 #include <linux/pwm.h>
+#include <linux/types.h>
+
+struct device;
 
 #define LPSS_MAX_PWMS                  4
 
This page took 0.052874 seconds and 4 git commands to generate.