]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: i2c: Move slave details to child platdata
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:13 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:56 +0000 (17:09 -0700)
commite6f66ec0e757b49d39885303a94784a342803dd2
treef53b145baa811fdcfffdc1fee016e866e480b8c7
parentd0cff03e187cc1de3d6b477b92c376aae27c95e8
dm: i2c: Move slave details to child platdata

At present we go through various contortions to store the I2C's chip
address in its private data. This only exists when the chip is active so
must be set up when it is probed. Until the device is probed we don't
actually record what address it will appear on.

However, now that we can support per-child platform data, we can use that
instead. This allows us to set up the address when the child is bound,
and avoid the messy contortions.

Unfortunately this is a fairly large change and it seems to be difficult to
break it down further.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/i2c/i2c-uclass-compat.c
drivers/i2c/i2c-uclass.c
drivers/i2c/i2c-uniphier-f.c
drivers/i2c/i2c-uniphier.c
drivers/i2c/sandbox_i2c.c
drivers/i2c/tegra_i2c.c
include/i2c.h