]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: expresswire: Don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Feb 2024 20:30:00 +0000 (22:30 +0200)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:45:31 +0000 (08:45 +0000)
Update header inclusions to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Duje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20240223203010.881065-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-expresswire.c
include/linux/leds-expresswire.h

index 89e147b0e019c4e7e28934940086ecdb9224d74c..e4937a8e0f44174b6c6882e2e406dc2583d98765 100644 (file)
@@ -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)
index 3c61902ccac8c856d06f22ed4b1c9c9b6c60d105..a422921f4159f2f51e40f50ad5c9d89d9070511a 100644 (file)
@@ -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;