diff mbox series

dm: fix design.rst document

Message ID 20200209185741.21421-1-dariobin@libero.it
State Accepted
Commit 2a3720181195b5deca7e370935c5573cf79d4859
Headers show
Series dm: fix design.rst document | expand

Commit Message

Dario Binacchi Feb. 9, 2020, 6:57 p.m. UTC
The patch fixes some errors.

Signed-off-by: Dario Binacchi <dariobin at libero.it>
---

 doc/driver-model/design.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Bin Meng Feb. 10, 2020, 2:40 a.m. UTC | #1
On Mon, Feb 10, 2020 at 2:57 AM Dario Binacchi <dariobin at libero.it> wrote:
>
> The patch fixes some errors.
>
> Signed-off-by: Dario Binacchi <dariobin at libero.it>
> ---
>
>  doc/driver-model/design.rst | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tom Rini Feb. 11, 2020, 12:33 p.m. UTC | #2
On Sun, Feb 09, 2020 at 07:57:41PM +0100, Dario Binacchi wrote:

> The patch fixes some errors.
> 
> Signed-off-by: Dario Binacchi <dariobin at libero.it>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/doc/driver-model/design.rst b/doc/driver-model/design.rst
index 8fd28c0f52..5247ecc276 100644
--- a/doc/driver-model/design.rst
+++ b/doc/driver-model/design.rst
@@ -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.