From: Masahiro Yamada Date: Mon, 26 Jan 2015 11:00:28 +0900 Subject: [U-Boot] [PATCH v3 12/26] dm: core: Allow uclasses to specify private data for a device's children In-Reply-To: <1422199640-25811-13-git-send-email-sjg@chromium.org> References: <1422199640-25811-1-git-send-email-sjg@chromium.org> <1422199640-25811-13-git-send-email-sjg@chromium.org> Message-ID: <20150126110028.5EAD.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:06 -0700 Simon Glass wrote: > In many cases the per-child private data for a device's children is defined > by the uclass rather than the individual driver. For example, a SPI bus > needs to store information about each of its children, but all SPI drivers > store the same information. It makes sense to allow the uclass to define > this data. > > If the driver provides a size value for its per-child private data, then use > it. Failng that, fall back to that provided by the uclass. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Fix typo in commit subject > > Changes in v2: None Reviewed-by: Masahiro Yamada