diff options
author | Tom Rini <trini@konsulko.com> | 2024-05-01 19:30:52 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-07 08:00:55 -0600 |
commit | 3ebb4546eb3d5d3647d07f6923aa1dd79996625c (patch) | |
tree | 937b25111adcc3115f7f44b3d28197dee35f1bc6 /drivers | |
parent | 356675ffd9100171525d50aa1849887473f5704f (diff) | |
download | u-boot-3ebb4546eb3d5d3647d07f6923aa1dd79996625c.tar.gz u-boot-3ebb4546eb3d5d3647d07f6923aa1dd79996625c.tar.bz2 u-boot-3ebb4546eb3d5d3647d07f6923aa1dd79996625c.zip |
i2c: Remove <common.h> and add needed includes
Remove <common.h> from this driver directory and when needed
add missing include files directly.
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
49 files changed, 12 insertions, 49 deletions
diff --git a/drivers/i2c/acpi_i2c.c b/drivers/i2c/acpi_i2c.c index 142f41178c..82cb5db5cc 100644 --- a/drivers/i2c/acpi_i2c.c +++ b/drivers/i2c/acpi_i2c.c @@ -3,7 +3,6 @@ * Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/ast2600_i2c.c b/drivers/i2c/ast2600_i2c.c index e566b01fea..9d1d70670b 100644 --- a/drivers/i2c/ast2600_i2c.c +++ b/drivers/i2c/ast2600_i2c.c @@ -2,7 +2,6 @@ /* * Copyright ASPEED Technology Inc. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 1c1d5566da..02ee406bbd 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -5,7 +5,6 @@ * Copyright 2017 Google, Inc. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index b7a25885e6..cfae36c74d 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -8,7 +8,6 @@ #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_ldo.c b/drivers/i2c/cros_ec_ldo.c index c593540ac1..dfe823c142 100644 --- a/drivers/i2c/cros_ec_ldo.c +++ b/drivers/i2c/cros_ec_ldo.c @@ -4,7 +4,6 @@ * Written by Simon Glass <sjg@chromium.org> */ -#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_tunnel.c b/drivers/i2c/cros_ec_tunnel.c index 75828b6e7c..2d610e0a2a 100644 --- a/drivers/i2c/cros_ec_tunnel.c +++ b/drivers/i2c/cros_ec_tunnel.c @@ -4,7 +4,6 @@ * Written by Simon Glass <sjg@chromium.org> */ -#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c index 25ef937dc0..3913274720 100644 --- a/drivers/i2c/davinci_i2c.c +++ b/drivers/i2c/davinci_i2c.c @@ -11,7 +11,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ -#include <common.h> +#include <config.h> #include <i2c.h> #include <dm.h> #include <log.h> diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index 29cf63375c..e8c1623d41 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,7 +4,6 @@ * Vipin Kumar, STMicroelectronics, vipin.kumar@st.com. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index 28495a3f42..11c9867226 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -5,7 +5,6 @@ * Copyright 2019 Google Inc */ -#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index a7349e06cf..9a364fdae3 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -6,7 +6,6 @@ * David Mueller, ELSOFT AG, d.mueller@elsoft.ch */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index d9d8ee81d2..bac14fb2f4 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -6,7 +6,7 @@ * Changes for multibus/multiadapter I2C support. */ -#include <common.h> +#include <config.h> #include <command.h> #include <i2c.h> /* Functional interface */ #include <log.h> diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 935b2ac637..3f7cf8533e 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers/i2c/i2c-cdns.c @@ -7,7 +7,6 @@ * with added driver-model support and code cleanup. */ -#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c index 960ae8c700..96f957164c 100644 --- a/drivers/i2c/i2c-cortina.c +++ b/drivers/i2c/i2c-cortina.c @@ -4,12 +4,12 @@ * Arthur Li, Cortina Access, arthur.li@cortina-access.com. */ -#include <common.h> #include <i2c.h> #include <log.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> +#include <time.h> #include "i2c-cortina.h" static void set_speed(struct i2c_regs *regs, int i2c_spd) diff --git a/drivers/i2c/i2c-emul-uclass.c b/drivers/i2c/i2c-emul-uclass.c index d421ddfcbe..0954d53847 100644 --- a/drivers/i2c/i2c-emul-uclass.c +++ b/drivers/i2c/i2c-emul-uclass.c @@ -5,7 +5,6 @@ #define LOG_CATEGORY UCLASS_I2C_EMUL -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 5fc3cfe42e..e0a575fb4a 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c @@ -5,7 +5,6 @@ * This file is based on: drivers/i2c/soft-i2c.c, * with added driver-model support and code cleanup. */ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-microchip.c b/drivers/i2c/i2c-microchip.c index d453e243d6..788747879a 100644 --- a/drivers/i2c/i2c-microchip.c +++ b/drivers/i2c/i2c-microchip.c @@ -6,7 +6,6 @@ * Padmarao Begari <padmarao.begari@microchip.com> * Conor Dooley <conor.dooley@microchip.com> */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 98f95859f3..380a9f8f3a 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -5,7 +5,6 @@ #define LOG_CATEGORY UCLASS_I2C -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c index 0a1a85dfc2..a8f0a170f7 100644 --- a/drivers/i2c/i2c-versatile.c +++ b/drivers/i2c/i2c-versatile.c @@ -5,7 +5,6 @@ * */ -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c index fe0cd75d94..7c43a5546d 100644 --- a/drivers/i2c/i2c_core.c +++ b/drivers/i2c/i2c_core.c @@ -7,7 +7,7 @@ * * Multibus/multiadapter I2C core functions (wrappers) */ -#include <common.h> +#include <config.h> #include <i2c.h> #include <linker_lists.h> #include <asm/global_data.h> diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index d715714638..dc88cd1916 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -4,7 +4,6 @@ * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc */ -#include <common.h> #include <i2c.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index ad9293c92e..6c0d8eb5f4 100644 --- a/drivers/i2c/imx_lpi2c.c +++ b/drivers/i2c/imx_lpi2c.c @@ -3,7 +3,6 @@ * Copyright 2016 Freescale Semiconductors, Inc. */ -#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c index 4fc6f1a11a..d8ceea10cd 100644 --- a/drivers/i2c/intel_i2c.c +++ b/drivers/i2c/intel_i2c.c @@ -7,11 +7,11 @@ * Copyright (C) 2016 Stefan Roese <sr@denx.de> */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> #include <pci.h> +#include <time.h> #include <asm/io.h> /* PCI Configuration Space (D31:F3): SMBus */ diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index 39af49c4ec..6570f64fe7 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -6,7 +6,6 @@ #include <asm/global_data.h> #include <asm/io.h> -#include <common.h> #include <config.h> #include <dm.h> #include <linux/printk.h> diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index 496f4feec5..a4e42e64a9 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -6,7 +6,7 @@ * Written-by: Albert ARIBAUD - 3ADEV <albert.aribaud@3adev.fr> */ -#include <common.h> +#include <config.h> #include <log.h> #include <asm/io.h> #include <i2c.h> diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 434e3461b1..19f1b6b081 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -2,7 +2,6 @@ /* * (C) Copyright 2017 - Beniamino Galvani <b.galvani@gmail.com> */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c index ad730e0e79..a83d7cb082 100644 --- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c +++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c @@ -4,12 +4,12 @@ * Written by Simon Glass <sjg@chromium.org> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> #include <log.h> #include <malloc.h> +#include <time.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 4ca206115f..f212bd1f98 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -10,7 +10,6 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/i2c/muxes/i2c-mux-uclass.c b/drivers/i2c/muxes/i2c-mux-uclass.c index a5d1bb0576..d1999d21fe 100644 --- a/drivers/i2c/muxes/i2c-mux-uclass.c +++ b/drivers/i2c/muxes/i2c-mux-uclass.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_I2C_MUX -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 0034dfbf6d..b4e3e16a97 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -5,7 +5,6 @@ * Written by Michal Simek */ -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 5bc9cd7b29..949cc45d30 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -16,7 +16,6 @@ * Murray.Jensen@cmst.csiro.au, 27-Jan-01. */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index c38330f758..44e8e191b0 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -7,7 +7,7 @@ * Copyright (c) 2010 Albert Aribaud. */ -#include <common.h> +#include <config.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index d501133a0c..0acdaf7e74 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -14,7 +14,7 @@ * */ -#include <common.h> +#include <config.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c index 07cda0fa67..8562dd82bd 100644 --- a/drivers/i2c/nx_i2c.c +++ b/drivers/i2c/nx_i2c.c @@ -1,8 +1,8 @@ -#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> #include <log.h> +#include <time.h> #include <asm/arch/nexell.h> #include <asm/arch/reset.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c index fff85118d0..cf714d22ee 100644 --- a/drivers/i2c/ocores_i2c.c +++ b/drivers/i2c/ocores_i2c.c @@ -12,7 +12,6 @@ * Andreas Larsson <andreas@gaisler.com> */ -#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index 6fc9d1eba9..ebe472e20c 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -38,7 +38,6 @@ * */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/qup_i2c.c b/drivers/i2c/qup_i2c.c index 5ae3cccd4a..26707d6398 100644 --- a/drivers/i2c/qup_i2c.c +++ b/drivers/i2c/qup_i2c.c @@ -9,7 +9,6 @@ #include <init.h> #include <env.h> -#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/delay.h> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index ff9a2d80dd..f0f9b2afac 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -11,7 +11,6 @@ * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index f0e50914c6..2aa0f5fbfa 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -9,7 +9,6 @@ * Copyright (C) 2011, 2013 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index 9927af94a8..fa167268ae 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -6,7 +6,6 @@ * Peter, Software Engineering, <superpeter.cai@gmail.com>. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 505e20bc61..72d2ab0f73 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -4,10 +4,10 @@ * David Mueller, ELSOFT AG, d.mueller@elsoft.ch */ -#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> +#include <time.h> #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) #include <log.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index c99e6de933..74bb5e9339 100644 --- a/drivers/i2c/sandbox_i2c.c +++ b/drivers/i2c/sandbox_i2c.c @@ -5,7 +5,6 @@ * Copyright (c) 2014 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index 3335d9482a..ab816101de 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -7,7 +7,6 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ -#include <common.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index ed8ba47de4..1f2afc65e8 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -15,7 +15,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ -#include <common.h> +#include <config.h> #if defined(CONFIG_AT91FAMILY) #include <asm/io.h> #include <asm/arch/hardware.h> diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index f42e08a641..3f51b1dd1d 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -5,7 +5,6 @@ #define LOG_CATEGORY UCLASS_I2C -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/sun6i_p2wi.c b/drivers/i2c/sun6i_p2wi.c index b8e07a533c..c927c0edf2 100644 --- a/drivers/i2c/sun6i_p2wi.c +++ b/drivers/i2c/sun6i_p2wi.c @@ -15,7 +15,6 @@ #include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sun8i_rsb.c b/drivers/i2c/sun8i_rsb.c index f36f2c7afa..2197f18056 100644 --- a/drivers/i2c/sun8i_rsb.c +++ b/drivers/i2c/sun8i_rsb.c @@ -10,7 +10,6 @@ #include <axp_pmic.h> #include <clk.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index 588f6bdcc4..d30eb52312 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -3,7 +3,6 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ -#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 57d77d56ea..3c324bd266 100644 --- a/drivers/i2c/tegra_i2c.c +++ b/drivers/i2c/tegra_i2c.c @@ -5,7 +5,6 @@ * NVIDIA Corporation <www.nvidia.com> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/xilinx_xiic.c b/drivers/i2c/xilinx_xiic.c index 72199a62b2..056024e350 100644 --- a/drivers/i2c/xilinx_xiic.c +++ b/drivers/i2c/xilinx_xiic.c @@ -9,7 +9,6 @@ * Copyright (c) 2009-2010 Intel Corporation */ -#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> |