[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220927144723.9655-5-andriy.shevchenko@linux.intel.com>
Date: Tue, 27 Sep 2022 17:47:19 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Hans de Goede <hdegoede@...hat.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Thierry Reding <thierry.reding@...il.com>
Subject: [PATCH v3 4/8] pwm: lpss: Include headers we are direct user of
For the sake of integrity, include headers we are direct user of.
While at it, add missed struct pwm_lpss_boardinfo one and replace
device.h with a forward declaration. The latter improves compile
time due to reducing overhead of device.h parsing with entire train
of dependencies.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@...hat.com>
---
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 c344921b2cab..839622964b2a 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
Powered by blists - more mailing lists