diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-25 08:27:13 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-29 17:09:56 -0700 |
commit | e6f66ec0e757b49d39885303a94784a342803dd2 (patch) | |
tree | f53b145baa811fdcfffdc1fee016e866e480b8c7 /include | |
parent | d0cff03e187cc1de3d6b477b92c376aae27c95e8 (diff) | |
download | u-boot-imx-e6f66ec0e757b49d39885303a94784a342803dd2.zip u-boot-imx-e6f66ec0e757b49d39885303a94784a342803dd2.tar.gz u-boot-imx-e6f66ec0e757b49d39885303a94784a342803dd2.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/i2c.h b/include/i2c.h index 76090b7..95d6f28 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -39,8 +39,8 @@ enum dm_i2c_chip_flags { * An I2C chip is a device on the I2C bus. It sits at a particular address * and normally supports 7-bit or 10-bit addressing. * - * To obtain this structure, use dev_get_parentdata(dev) where dev is the - * chip to examine. + * To obtain this structure, use dev_get_parent_platdata(dev) where dev is + * the chip to examine. * * @chip_addr: Chip address on bus * @offset_len: Length of offset in bytes. A single byte offset can |