[PATCH v2 treewide] headers: separate mod_devicetable.h and platform_device.h

2018-06-19 Thread Randy Dunlap
From: Randy Dunlap 

At over 4000 #includes,  is the 9th most
#included header file in the Linux kernel.  It does not need
, so drop that header and explicitly add
 to source files that need it.

   4146 #include 

After this patch, there are 225 files that use ,
for a reduction of around 3900 times that 
does not have to be read & parsed.

225 #include 

This patch was build-tested on 20 different arch-es.

It also makes these drivers SubmitChecklist#1 compliant.

Signed-off-by: Randy Dunlap 
Reported-by: kbuild test robot  # drivers/media/platform/vimc/
---
v2: add fixes for drivers/media/platform/vimc/

 arch/arm/mach-mmp/sram.c  |1 +
 drivers/ata/pata_imx.c|1 +
 drivers/ata/pata_samsung_cf.c |1 +
 drivers/auxdisplay/hd44780.c  |1 +
 drivers/char/hw_random/atmel-rng.c|1 +
 drivers/char/hw_random/exynos-trng.c  |1 +
 drivers/char/hw_random/imx-rngc.c |1 +
 drivers/char/hw_random/powernv-rng.c  |1 +
 drivers/crypto/mediatek/mtk-platform.c|1 +
 drivers/crypto/qce/core.c |1 +
 drivers/crypto/stm32/stm32_crc32.c|1 +
 drivers/crypto/ux500/cryp/cryp_core.c |1 +
 drivers/crypto/ux500/hash/hash_core.c |1 +
 drivers/devfreq/tegra-devfreq.c   |1 +
 drivers/dma/ep93xx_dma.c  |1 +
 drivers/dma/s3c24xx-dma.c |1 +
 drivers/extcon/extcon-intel-cht-wc.c  |1 +
 drivers/extcon/extcon-qcom-spmi-misc.c|1 +
 drivers/gpu/drm/mediatek/mtk_cec.c|1 +
 drivers/gpu/drm/sun4i/sun6i_drc.c |1 +
 drivers/hsi/controllers/omap_ssi_port.c   |1 +
 drivers/hwmon/max197.c|1 +
 drivers/hwmon/mc13783-adc.c   |1 +
 drivers/media/platform/coda/imx-vdoa.c|1 +
 drivers/media/platform/rcar-fcp.c |1 +
 drivers/media/platform/vimc/vimc-capture.c|1 +
 drivers/media/platform/vimc/vimc-debayer.c|1 +
 drivers/media/platform/vimc/vimc-scaler.c |1 +
 drivers/media/platform/vimc/vimc-sensor.c |1 +
 drivers/memory/tegra/tegra186.c   |1 +
 drivers/mfd/atmel-hlcdc.c |1 +
 drivers/mfd/cros_ec_dev.c |1 +
 drivers/mtd/nand/raw/brcmnand/brcmstb_nand.c  |1 +
 drivers/net/ethernet/calxeda/xgmac.c  |1 +
 drivers/net/ethernet/faraday/ftmac100.c   |1 +
 drivers/net/wireless/ath/ath9k/ahb.c  |1 +
 drivers/net/wireless/ti/wl12xx/main.c |1 +
 drivers/net/wireless/ti/wl18xx/main.c |1 +
 drivers/nvmem/lpc18xx_eeprom.c|1 +
 drivers/nvmem/mtk-efuse.c |1 +
 drivers/nvmem/qfprom.c|1 +
 drivers/nvmem/uniphier-efuse.c|1 +
 drivers/perf/arm-ccn.c|1 +
 drivers/pinctrl/intel/pinctrl-merrifield.c|1 +
 drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c|1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c   |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c  |1 +
 drivers/platform/goldfish/goldfish_pipe.c |1 +
 drivers/platform/x86/intel_bxtwc_tmu.c|1 +
 drivers/power/avs/smartreflex.c   |1 +
 drivers/power/reset/ltc2952-poweroff.c|1 +
 drivers/power/supply/max8998_charger.c|1 +
 drivers/power/supply/olpc_battery.c   |1 +
 drivers/ptp/ptp_dte.c   

[PATCH v2 treewide] headers: separate mod_devicetable.h and platform_device.h

2018-06-19 Thread Randy Dunlap
From: Randy Dunlap 

At over 4000 #includes,  is the 9th most
#included header file in the Linux kernel.  It does not need
, so drop that header and explicitly add
 to source files that need it.

   4146 #include 

After this patch, there are 225 files that use ,
for a reduction of around 3900 times that 
does not have to be read & parsed.

225 #include 

This patch was build-tested on 20 different arch-es.

It also makes these drivers SubmitChecklist#1 compliant.

Signed-off-by: Randy Dunlap 
Reported-by: kbuild test robot  # drivers/media/platform/vimc/
---
v2: add fixes for drivers/media/platform/vimc/

 arch/arm/mach-mmp/sram.c  |1 +
 drivers/ata/pata_imx.c|1 +
 drivers/ata/pata_samsung_cf.c |1 +
 drivers/auxdisplay/hd44780.c  |1 +
 drivers/char/hw_random/atmel-rng.c|1 +
 drivers/char/hw_random/exynos-trng.c  |1 +
 drivers/char/hw_random/imx-rngc.c |1 +
 drivers/char/hw_random/powernv-rng.c  |1 +
 drivers/crypto/mediatek/mtk-platform.c|1 +
 drivers/crypto/qce/core.c |1 +
 drivers/crypto/stm32/stm32_crc32.c|1 +
 drivers/crypto/ux500/cryp/cryp_core.c |1 +
 drivers/crypto/ux500/hash/hash_core.c |1 +
 drivers/devfreq/tegra-devfreq.c   |1 +
 drivers/dma/ep93xx_dma.c  |1 +
 drivers/dma/s3c24xx-dma.c |1 +
 drivers/extcon/extcon-intel-cht-wc.c  |1 +
 drivers/extcon/extcon-qcom-spmi-misc.c|1 +
 drivers/gpu/drm/mediatek/mtk_cec.c|1 +
 drivers/gpu/drm/sun4i/sun6i_drc.c |1 +
 drivers/hsi/controllers/omap_ssi_port.c   |1 +
 drivers/hwmon/max197.c|1 +
 drivers/hwmon/mc13783-adc.c   |1 +
 drivers/media/platform/coda/imx-vdoa.c|1 +
 drivers/media/platform/rcar-fcp.c |1 +
 drivers/media/platform/vimc/vimc-capture.c|1 +
 drivers/media/platform/vimc/vimc-debayer.c|1 +
 drivers/media/platform/vimc/vimc-scaler.c |1 +
 drivers/media/platform/vimc/vimc-sensor.c |1 +
 drivers/memory/tegra/tegra186.c   |1 +
 drivers/mfd/atmel-hlcdc.c |1 +
 drivers/mfd/cros_ec_dev.c |1 +
 drivers/mtd/nand/raw/brcmnand/brcmstb_nand.c  |1 +
 drivers/net/ethernet/calxeda/xgmac.c  |1 +
 drivers/net/ethernet/faraday/ftmac100.c   |1 +
 drivers/net/wireless/ath/ath9k/ahb.c  |1 +
 drivers/net/wireless/ti/wl12xx/main.c |1 +
 drivers/net/wireless/ti/wl18xx/main.c |1 +
 drivers/nvmem/lpc18xx_eeprom.c|1 +
 drivers/nvmem/mtk-efuse.c |1 +
 drivers/nvmem/qfprom.c|1 +
 drivers/nvmem/uniphier-efuse.c|1 +
 drivers/perf/arm-ccn.c|1 +
 drivers/pinctrl/intel/pinctrl-merrifield.c|1 +
 drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c|1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c   |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c  |1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c  |1 +
 drivers/platform/goldfish/goldfish_pipe.c |1 +
 drivers/platform/x86/intel_bxtwc_tmu.c|1 +
 drivers/power/avs/smartreflex.c   |1 +
 drivers/power/reset/ltc2952-poweroff.c|1 +
 drivers/power/supply/max8998_charger.c|1 +
 drivers/power/supply/olpc_battery.c   |1 +
 drivers/ptp/ptp_dte.c