Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    e6f66ec0
    dm: i2c: Move slave details to child platdata · e6f66ec0
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    e6f66ec0
    History
    dm: i2c: Move slave details to child platdata
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>