From: Masahiro Yamada Date: Mon, 26 Jan 2015 11:05:31 +0900 Subject: [U-Boot] [PATCH v3 19/26] dm: i2c: Move slave details to child platdata In-Reply-To: <1422199640-25811-20-git-send-email-sjg@chromium.org> References: <1422199640-25811-1-git-send-email-sjg@chromium.org> <1422199640-25811-20-git-send-email-sjg@chromium.org> Message-ID: <20150126110531.5EB1.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 25 Jan 2015 08:27:13 -0700 Simon Glass wrote: > 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 > --- > > Changes in v3: > - Add missing 'static' to two functions > - Remove unnecessary per_child_auto_alloc_size value I tested this series on my board. I am OK with the change in the UniPhier I2C driver area. Reviewed-by: Masahiro Yamada