On 8 April 2015 at 11:06, Przemyslaw Marczak <[email protected]> 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 <[email protected]> > Cc: Simon Glass <[email protected]> > --- > Changes V2: > - none > > Changes V3: > - none > --- > drivers/core/device-remove.c | 4 ++++ > drivers/core/device.c | 33 +++++++++++++++++++++++++++++---- > include/dm/device.h | 17 ++++++++++++++++- > include/dm/uclass.h | 4 ++++ > 4 files changed, 53 insertions(+), 5 deletions(-)
Acked-by: Simon Glass <[email protected]> _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

