Re: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model

2013-11-06 Thread Pavel Herrmann
Hi On Tuesday 05 of November 2013 14:34:03 Simon Glass wrote: +Declaring Uclasses +-- + +The demo uclass is declared like this: + +U_BOOT_CLASS(demo) = { + .id = UCLASS_DEMO, +}; + +It is also possible to specify special methods for probe, etc.

Re: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model

2013-11-05 Thread Simon Glass
Hi Marek, On Tue, Oct 22, 2013 at 9:56 PM, Marek Vasut ma...@denx.de wrote: Dear Simon Glass, [...] +What is going on? +- + +Let's start at the top. The demo command is in common/cmd_demo.c. It does +the usual command procesing and then: + + struct device

Re: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model

2013-11-05 Thread Marek Vasut
Hi Simon, [...] +Declaring Uclasses +-- + +The demo uclass is declared like this: + +U_BOOT_CLASS(demo) = { + .id = UCLASS_DEMO, +}; + +It is also possible to specify special methods for probe, etc. The uclass +numbering comes from

Re: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model

2013-10-22 Thread Marek Vasut
Dear Simon Glass, [...] +What is going on? +- + +Let's start at the top. The demo command is in common/cmd_demo.c. It does +the usual command procesing and then: + + struct device *demo_dev; + + ret = uclass_get_device(UCLASS_DEMO, demo_dev); Which device will

[U-Boot] [PATCH v5 06/16] dm: Add README for driver model

2013-10-21 Thread Simon Glass
This adds a README to help with understanding of this series. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v5: None Changes in v4: None Changes in v3: - Updated README.txt to cover changes since version 2 Changes in v2: - Removed pointer return values in favour of integer - Use