[U-Boot] [PATCH V4 02/10] dm: core: Extend struct udevice by '.uclass_platdata' field.

Simon Glass sjg at chromium.org
Mon Apr 20 05:22:40 CEST 2015


On 15 April 2015 at 05:07, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
> This commit adds 'uclass_platdata' field to 'struct udevice', which
> can be automatically allocated at bind. The allocation size is defined
> in 'struct uclass_driver' as 'per_device_platdata_auto_alloc_size'.
>
> New device's flag is added: DM_FLAG_ALLOC_UCLASS_PDATA, which is used
> for memory freeing at device unbind method.
>
> As for other udevice's fields, a complementary function is added:
> - dev_get_uclass_platdata()
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> Cc: Simon Glass <sjg at chromium.org>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
> Changes V2:
> - none
>
> Changes V3:
> - none
>
> Changes V4:
> - add Acked-by

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list