Commit 2a3720181195b5deca7e370935c5573cf79d4859

Authored by Dario Binacchi
Committed by Tom Rini
1 parent b7adcdd073

dm: fix design.rst document

The patch fixes some errors.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

doc/driver-model/design.rst
... ... @@ -231,7 +231,7 @@
231 231 What is going on?
232 232 -----------------
233 233  
234   -Let's start at the top. The demo command is in common/cmd_demo.c. It does
  234 +Let's start at the top. The demo command is in cmd/demo.c. It does
235 235 the usual command processing and then:
236 236  
237 237 .. code-block:: c
... ... @@ -402,7 +402,7 @@
402 402  
403 403 .. code-block:: c
404 404  
405   - static const struct dm_demo_cdata red_square = {
  405 + static const struct dm_demo_pdata red_square = {
406 406 .colour = "red",
407 407 .sides = 4.
408 408 };
409 409  
... ... @@ -489,12 +489,12 @@
489 489  
490 490 .. code-block:: c
491 491  
492   - U_BOOT_CLASS(demo) = {
  492 + UCLASS_DRIVER(demo) = {
493 493 .id = UCLASS_DEMO,
494 494 };
495 495  
496 496 It is also possible to specify special methods for probe, etc. The uclass
497   -numbering comes from include/dm/uclass.h. To add a new uclass, add to the
  497 +numbering comes from include/dm/uclass-id.h. To add a new uclass, add to the
498 498 end of the enum there, then declare your uclass as above.
499 499  
500 500