Skip to contentSkip to conversation

dm: fix design.rst document

PATCH New Dario Binacchi 3 participants 3 messages Feb 9, 2020 – Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: fix design.rst document

The patch fixes some errors.

---

 doc/driver-model/design.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
doc/driver-model/design.rst +4 -4
index 8fd28c0f52..5247ecc276 100644
@@ -231,7 +231,7 @@ You should see something like this::
 What is going on?
 -----------------
 
-Let's start at the top. The demo command is in common/cmd_demo.c. It does
+Let's start at the top. The demo command is in cmd/demo.c. It does
 the usual command processing and then:
 
 .. code-block:: c
@@ -402,7 +402,7 @@ in the board file.
 
 .. code-block:: c
 
-	static const struct dm_demo_cdata red_square = {
+	static const struct dm_demo_pdata red_square = {
 		.colour = "red",
 		.sides = 4.
 	};
@@ -489,12 +489,12 @@ The demo uclass is declared like this:
 
 .. code-block:: c
 
-	U_BOOT_CLASS(demo) = {
+	UCLASS_DRIVER(demo) = {
 		.id		= UCLASS_DEMO,
 	};
 
 It is also possible to specify special methods for probe, etc. The uclass
-numbering comes from include/dm/uclass.h. To add a new uclass, add to the
+numbering comes from include/dm/uclass-id.h. To add a new uclass, add to the
 end of the enum there, then declare your uclass as above.
 
 
Signature · 1 line
2.24.0
#2 lore raw

PATCH 1/1 dm: fix design.rst document

In reply to Dario Binacchi
Quoted 4 lines · Dario Binacchi

The patch fixes some errors.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200211/3e3d83cf/attachment.sig>