]> git.sur5r.net Git - u-boot/commit
dm: core: Add dev_get_uclass_priv() to access uclass private data
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:20 +0000 (12:25 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:42 +0000 (19:27 -0600)
commite564f054af002d9e6a1080ed9d4bc2c6052a4435
tree7b945d568d32c7febf5a8b70c6bce26b5157663c
parent106cce9604306743c86addd4d27426cce498c9d1
dm: core: Add dev_get_uclass_priv() to access uclass private data

Add a convenience function to access the private data that a uclass stores
for each of its devices. Convert over most existing uses for consistency
and to provide an example for others.

Signed-off-by: Simon Glass <sjg@chromium.org>
27 files changed:
common/cmd_sf.c
common/cros_ec.c
drivers/core/device.c
drivers/gpio/at91_gpio.c
drivers/gpio/bcm2835_gpio.c
drivers/gpio/gpio-uclass.c
drivers/gpio/intel_ich6_gpio.c
drivers/gpio/mxc_gpio.c
drivers/gpio/omap_gpio.c
drivers/gpio/s5p_gpio.c
drivers/gpio/sandbox.c
drivers/gpio/sunxi_gpio.c
drivers/gpio/tegra_gpio.c
drivers/i2c/i2c-uclass.c
drivers/i2c/sandbox_i2c.c
drivers/misc/cros_ec.c
drivers/misc/cros_ec_i2c.c
drivers/misc/cros_ec_sandbox.c
drivers/misc/cros_ec_spi.c
drivers/mtd/spi/sf-uclass.c
drivers/mtd/spi/sf_probe.c
drivers/serial/serial-uclass.c
drivers/spi/spi-uclass.c
include/dm/device.h
include/i2c.h
test/dm/core.c
test/dm/test-uclass.c