[PATCH v1 4/9] pwm: lpss: Include headers we are direct user of

From: Andy Shevchenko
Date: Tue Sep 06 2022 - 16:03:26 EST


For the sake of integrity, include headers we are direct user of.

While at it, replace device.h with a forward declaration.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
drivers/pwm/pwm-lpss.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h
index 5995b6b750a8..832cb86996d7 100644
--- a/drivers/pwm/pwm-lpss.h
+++ b/drivers/pwm/pwm-lpss.h
@@ -10,11 +10,15 @@
#ifndef __PWM_LPSS_H
#define __PWM_LPSS_H

-#include <linux/device.h>
#include <linux/pwm.h>
+#include <linux/types.h>

#define MAX_PWMS 4

+struct device;
+
+struct pwm_lpss_boardinfo;
+
struct pwm_lpss_chip {
struct pwm_chip chip;
void __iomem *regs;
--
2.35.1