[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223203010.881065-1-andriy.shevchenko@linux.intel.com>
Date: Fri, 23 Feb 2024 22:30:00 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Duje Mihanović <duje.mihanovic@...le.hr>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Pavel Machek <pavel@....cz>,
Lee Jones <lee@...nel.org>
Subject: [PATCH v2 1/1] leds: expresswire: Don't use "proxy" headers
Update header inclusions to follow IWYU (Include What You Use)
principle.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
v2: added one more missing header
drivers/leds/leds-expresswire.c | 4 ++++
include/linux/leds-expresswire.h | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/leds/leds-expresswire.c b/drivers/leds/leds-expresswire.c
index 89e147b0e019..e4937a8e0f44 100644
--- a/drivers/leds/leds-expresswire.c
+++ b/drivers/leds/leds-expresswire.c
@@ -5,8 +5,12 @@
* ktd2692 and ktd2801 are known to use this protocol.
*/
+#include <linux/bits.h>
#include <linux/delay.h>
+#include <linux/export.h>
#include <linux/gpio/consumer.h>
+#include <linux/types.h>
+
#include <linux/leds-expresswire.h>
void expresswire_power_off(struct expresswire_common_props *props)
diff --git a/include/linux/leds-expresswire.h b/include/linux/leds-expresswire.h
index 3c61902ccac8..a422921f4159 100644
--- a/include/linux/leds-expresswire.h
+++ b/include/linux/leds-expresswire.h
@@ -8,7 +8,9 @@
#ifndef _LEDS_EXPRESSWIRE_H
#define _LEDS_EXPRESSWIRE_H
-#include <linux/gpio/consumer.h>
+#include <linux/types.h>
+
+struct gpio_desc;
struct expresswire_timing {
unsigned long poweroff_us;
--
2.43.0.rc1.1.gbec44491f096
Powered by blists - more mailing lists