leds: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:46:50 +0000 (11:46 -0600)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 09:02:32 +0000 (10:02 +0100)
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>
13 files changed:
drivers/leds/leds-ariel.c
drivers/leds/leds-cpcap.c
drivers/leds/leds-cr0014114.c
drivers/leds/leds-is31fl32xx.c
drivers/leds/leds-mlxreg.c
drivers/leds/leds-pca9532.c
drivers/leds/leds-pm8058.c
drivers/leds/leds-pwm.c
drivers/leds/leds-spi-byte.c
drivers/leds/leds-syscon.c
drivers/leds/leds-ti-lmu-common.c
drivers/leds/leds-tlc591xx.c
drivers/leds/rgb/leds-qcom-lpg.c

index 49e1bddaa15e0f6a845c76468b827e91c778c4e7..dd319c7e385fc1ad3e78cc2069a6b82caf43723c 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <linux/module.h>
 #include <linux/leds.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
-#include <linux/of_platform.h>
 
 enum ec_index {
        EC_BLUE_LED     = 0x01,
index 7d41ce8c9bb1e0c8f3bcff530e5a5d34eaff0d21..87354f17644bac3fac50467cef3acc15129652a9 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/mfd/motorola-cpcap.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/regulator/consumer.h>
index c87686bd7c189fccc0629bcefdea8306d9c67d70..b33bca397ea60df451f31cd3dcafa40f0ac7475e 100644 (file)
@@ -4,8 +4,8 @@
 
 #include <linux/delay.h>
 #include <linux/leds.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/spi/spi.h>
 #include <linux/workqueue.h>
 
index 72cb56d305c433d0540a6ae8212760ed572ddc98..b0a0be77bb33b94039d44286e5941c72b6077eaf 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/leds.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 /* Used to indicate a device has no such register */
 #define IS31FL32XX_REG_NONE 0xFF
index b7855c93bd72507d78a2777411011bc0334b9d72..39210653acf7fe8c73ff0a006842483102c7bca6 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/io.h>
 #include <linux/leds.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/platform_data/mlxreg.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
index 8b5c62083e50827ced35ab5e54284ded8e09b29e..bf8bb8fc007c63bb31e97d298ca826fb4974c39e 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/leds-pca9532.h>
 #include <linux/gpio/driver.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 /* m =  num_leds*/
 #define PCA9532_REG_INPUT(i)   ((i) >> 3)
index b9233f14b6467e26d389c0c87ea3901d5b3ab680..3f49a518189252447450bf9ac2d23889ac63ece6 100644 (file)
@@ -4,7 +4,6 @@
 #include <linux/leds.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/regmap.h>
index 87c199242f3c801fa8b98658807bae306d96e715..419b710984ab6200ce7cffe9a728cd27ad0354f6 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <linux/leds.h>
 #include <linux/err.h>
 #include <linux/pwm.h>
index 2c7ffc3c78e666ede757bd077ea0c798060d80a7..9d91f21842f2b5568976bfa968a50a0f08c72c98 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <linux/leds.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/spi/spi.h>
 #include <linux/mutex.h>
 #include <uapi/linux/uleds.h>
index e38abb5e60c1bbbf9d0f2804179f290435628dc0..360a376fa738c4d305f48f99e1202b273934c264 100644 (file)
@@ -7,8 +7,7 @@
  */
 #include <linux/io.h>
 #include <linux/init.h>
-#include <linux/of_device.h>
-#include <linux/of_address.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/stat.h>
 #include <linux/slab.h>
index d7f10ad721badc62bd79c72c060deddf87d4a77b..b2491666b5dc97dc757610ae453a2269532b0f02 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <linux/bitops.h>
 #include <linux/err.h>
-#include <linux/of_device.h>
+#include <linux/property.h>
 
 #include <linux/leds-ti-lmu-common.h>
 
index dfc6fb2b3e5224cc8d39154c9561f0133cf731b1..945e831ef4ac4db19725f10aecf920fa1172817e 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/leds.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
index 59581b3e25ca98ff87dc6d749034554153df47a0..fd7676aa243d51748852ba5356d13d49e43bd8de 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/led-class-multicolor.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pwm.h>
 #include <linux/regmap.h>