From: Andy Shevchenko Date: Thu, 17 Nov 2022 11:08:02 +0000 (+0200) Subject: pwm: lpss: Include headers we are the direct user of X-Git-Tag: v6.2-rc1~119^2~6^2~3 X-Git-Url: https://repo.jachan.dev/linux.git/commitdiff_plain/878cf979c1458f835d436debb886f9dfff59012a pwm: lpss: Include headers we are the direct user of 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 Acked-by: Thierry Reding Reviewed-by: Mika Westerberg Reviewed-by: Hans de Goede Acked-by: Uwe Kleine-König --- diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h index 2c746c51b883..4ce6daa46ca8 100644 --- a/drivers/pwm/pwm-lpss.h +++ b/drivers/pwm/pwm-lpss.h @@ -10,8 +10,10 @@ #ifndef __PWM_LPSS_H #define __PWM_LPSS_H -#include #include +#include + +struct device; #define LPSS_MAX_PWMS 4