]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO()
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2020 03:34:54 +0000 (20:34 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:26:35 +0000 (12:26 -0700)
commit20e442ab2df355450006574fff178c746d254a18
tree7e4eae44adf14d155a5cb028a909cdcf8174eab3
parentbe3bd3bb177ec913050745131687089c1ff69c44
dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO()

The current macro is a misnomer since it does not declare a device
directly. Instead, it declares driver_info record which U-Boot uses at
runtime to create a device.

The distinction seems somewhat minor most of the time, but is becomes
quite confusing when we actually want to declare a device, with
of-platdata. We are left trying to distinguish between a device which
isn't actually device, and a device that is (perhaps an 'instance'?)

It seems better to rename this macro to describe what it actually is. The
macros is not widely used, since boards should use devicetree to declare
devices.

Rename it to U_BOOT_DRVINFO(), which indicates clearly that this is
declaring a new driver_info record, not a device.

Signed-off-by: Simon Glass <sjg@chromium.org>
64 files changed:
arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c
arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c
arch/arm/mach-imx/mx6/soc.c
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-lpc32xx/devices.c
arch/arm/mach-omap2/am33xx/board.c
arch/arm/mach-omap2/omap3/board.c
arch/arm/mach-tegra/board.c
arch/arm/mach-tegra/board2.c
board/armltd/integrator/integrator.c
board/armltd/total_compute/total_compute.c
board/armltd/vexpress64/vexpress64.c
board/bluewater/gurnard/gurnard.c
board/bluewater/snapper9260/snapper9260.c
board/cadence/xtfpga/xtfpga.c
board/cavium/thunderx/thunderx.c
board/compulab/cm_fx6/cm_fx6.c
board/davinci/da8xxevm/omapl138_lcdk.c
board/freescale/ls1012afrdm/eth.c
board/freescale/ls1012aqds/eth.c
board/freescale/ls1012ardb/eth.c
board/freescale/lx2160a/lx2160a.c
board/gateworks/gw_ventana/gw_ventana.c
board/hisilicon/hikey/hikey.c
board/hisilicon/hikey960/hikey960.c
board/hisilicon/poplar/poplar.c
board/isee/igep00x0/igep00x0.c
board/lg/sniper/sniper.c
board/nokia/rx51/rx51.c
board/sandbox/sandbox.c
board/siemens/corvus/board.c
board/st/stv0991/stv0991.c
board/sysam/amcore/amcore.c
board/ti/am335x/board.c
board/timll/devkit8000/devkit8000.c
board/toradex/apalis_imx6/apalis_imx6.c
board/toradex/colibri-imx6ull/colibri-imx6ull.c
board/toradex/colibri_imx6/colibri_imx6.c
board/toradex/colibri_pxa270/colibri_pxa270.c
doc/driver-model/design.rst
doc/driver-model/of-plat.rst
doc/driver-model/remoteproc-framework.rst
doc/driver-model/spi-howto.rst
drivers/crypto/fsl/fsl_rsa.c
drivers/crypto/rsa_mod_exp/mod_exp_sw.c
drivers/demo/demo-pdata.c
drivers/gpio/imx_rgpio2p.c
drivers/gpio/mxc_gpio.c
drivers/remoteproc/sandbox_testproc.c
drivers/rtc/emul_rtc.c
drivers/serial/sandbox.c
drivers/sysreset/sysreset_sandbox.c
drivers/timer/sandbox_timer.c
drivers/video/sunxi/sunxi_de2.c
drivers/video/sunxi/sunxi_dw_hdmi.c
drivers/video/sunxi/sunxi_lcd.c
dts/Kconfig
include/dm/device.h
include/dm/lists.h
include/dm/platdata.h
include/dm/platform_data/spi_pl022.h
test/dm/core.c
tools/dtoc/dtb_platdata.py
tools/dtoc/test_dtoc.py