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.
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
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
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
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
5 matches
Mail list logo