[U-Boot] [PATCH v2 08/22] dm: core: Add dev_get_uclass_priv() to access uclass private data

Simon Glass sjg at chromium.org
Sat Mar 21 00:15:45 CET 2015


On 5 March 2015 at 12:25, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2: None
>
>  common/cmd_sf.c                |  2 +-
>  common/cros_ec.c               |  2 +-
>  drivers/core/device.c          | 10 ++++++++++
>  drivers/gpio/at91_gpio.c       |  2 +-
>  drivers/gpio/bcm2835_gpio.c    |  2 +-
>  drivers/gpio/gpio-uclass.c     | 22 +++++++++++-----------
>  drivers/gpio/intel_ich6_gpio.c |  2 +-
>  drivers/gpio/mxc_gpio.c        |  2 +-
>  drivers/gpio/omap_gpio.c       |  2 +-
>  drivers/gpio/s5p_gpio.c        |  2 +-
>  drivers/gpio/sandbox.c         |  6 +++---
>  drivers/gpio/sunxi_gpio.c      |  2 +-
>  drivers/gpio/tegra_gpio.c      |  2 +-
>  drivers/i2c/i2c-uclass.c       |  6 +++---
>  drivers/i2c/sandbox_i2c.c      |  2 +-
>  drivers/misc/cros_ec.c         |  6 +++---
>  drivers/misc/cros_ec_i2c.c     |  2 +-
>  drivers/misc/cros_ec_sandbox.c |  2 +-
>  drivers/misc/cros_ec_spi.c     |  4 ++--
>  drivers/mtd/spi/sf-uclass.c    |  2 +-
>  drivers/mtd/spi/sf_probe.c     |  8 ++++----
>  drivers/serial/serial-uclass.c |  4 ++--
>  drivers/spi/spi-uclass.c       |  4 ++--
>  include/dm/device.h            | 10 ++++++++++
>  include/i2c.h                  |  8 ++++----
>  test/dm/core.c                 |  2 +-
>  test/dm/test-uclass.c          |  4 ++--
>  27 files changed, 71 insertions(+), 51 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list