Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: Explicitly include correct DT includes

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230714174651.4058753-1-robh@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Rob Herring and committed by
Lee Jones
3192f141 3c19c791

+7 -14
+1 -1
drivers/leds/leds-ariel.c
··· 7 7 8 8 #include <linux/module.h> 9 9 #include <linux/leds.h> 10 + #include <linux/platform_device.h> 10 11 #include <linux/regmap.h> 11 - #include <linux/of_platform.h> 12 12 13 13 enum ec_index { 14 14 EC_BLUE_LED = 0x01,
+1 -1
drivers/leds/leds-cpcap.c
··· 7 7 #include <linux/mfd/motorola-cpcap.h> 8 8 #include <linux/module.h> 9 9 #include <linux/mutex.h> 10 - #include <linux/of_device.h> 10 + #include <linux/of.h> 11 11 #include <linux/platform_device.h> 12 12 #include <linux/regmap.h> 13 13 #include <linux/regulator/consumer.h>
+1 -1
drivers/leds/leds-cr0014114.c
··· 4 4 5 5 #include <linux/delay.h> 6 6 #include <linux/leds.h> 7 + #include <linux/mod_devicetable.h> 7 8 #include <linux/module.h> 8 - #include <linux/of_device.h> 9 9 #include <linux/spi/spi.h> 10 10 #include <linux/workqueue.h> 11 11
-1
drivers/leds/leds-is31fl32xx.c
··· 15 15 #include <linux/leds.h> 16 16 #include <linux/module.h> 17 17 #include <linux/of.h> 18 - #include <linux/of_device.h> 19 18 20 19 /* Used to indicate a device has no such register */ 21 20 #define IS31FL32XX_REG_NONE 0xFF
-1
drivers/leds/leds-mlxreg.c
··· 8 8 #include <linux/io.h> 9 9 #include <linux/leds.h> 10 10 #include <linux/module.h> 11 - #include <linux/of_device.h> 12 11 #include <linux/platform_data/mlxreg.h> 13 12 #include <linux/platform_device.h> 14 13 #include <linux/regmap.h>
-1
drivers/leds/leds-pca9532.c
··· 18 18 #include <linux/leds-pca9532.h> 19 19 #include <linux/gpio/driver.h> 20 20 #include <linux/of.h> 21 - #include <linux/of_device.h> 22 21 23 22 /* m = num_leds*/ 24 23 #define PCA9532_REG_INPUT(i) ((i) >> 3)
-1
drivers/leds/leds-pm8058.c
··· 4 4 #include <linux/leds.h> 5 5 #include <linux/module.h> 6 6 #include <linux/of.h> 7 - #include <linux/of_device.h> 8 7 #include <linux/platform_device.h> 9 8 #include <linux/pm.h> 10 9 #include <linux/regmap.h>
+1 -1
drivers/leds/leds-pwm.c
··· 12 12 #include <linux/module.h> 13 13 #include <linux/kernel.h> 14 14 #include <linux/platform_device.h> 15 - #include <linux/of_platform.h> 15 + #include <linux/of.h> 16 16 #include <linux/leds.h> 17 17 #include <linux/err.h> 18 18 #include <linux/pwm.h>
+1 -1
drivers/leds/leds-spi-byte.c
··· 30 30 31 31 #include <linux/leds.h> 32 32 #include <linux/module.h> 33 - #include <linux/of_device.h> 33 + #include <linux/of.h> 34 34 #include <linux/spi/spi.h> 35 35 #include <linux/mutex.h> 36 36 #include <uapi/linux/uleds.h>
+1 -2
drivers/leds/leds-syscon.c
··· 7 7 */ 8 8 #include <linux/io.h> 9 9 #include <linux/init.h> 10 - #include <linux/of_device.h> 11 - #include <linux/of_address.h> 10 + #include <linux/of.h> 12 11 #include <linux/platform_device.h> 13 12 #include <linux/stat.h> 14 13 #include <linux/slab.h>
+1 -1
drivers/leds/leds-ti-lmu-common.c
··· 7 7 8 8 #include <linux/bitops.h> 9 9 #include <linux/err.h> 10 - #include <linux/of_device.h> 10 + #include <linux/property.h> 11 11 12 12 #include <linux/leds-ti-lmu-common.h> 13 13
-1
drivers/leds/leds-tlc591xx.c
··· 8 8 #include <linux/leds.h> 9 9 #include <linux/module.h> 10 10 #include <linux/of.h> 11 - #include <linux/of_device.h> 12 11 #include <linux/regmap.h> 13 12 #include <linux/slab.h> 14 13
-1
drivers/leds/rgb/leds-qcom-lpg.c
··· 9 9 #include <linux/led-class-multicolor.h> 10 10 #include <linux/module.h> 11 11 #include <linux/of.h> 12 - #include <linux/of_device.h> 13 12 #include <linux/platform_device.h> 14 13 #include <linux/pwm.h> 15 14 #include <linux/regmap.h>