diff options
| author | Tom Rini <[email protected]> | 2020-02-11 07:32:44 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-02-11 07:32:44 -0500 |
| commit | ae347120eed8204b1fdf018ddf79131964e57016 (patch) | |
| tree | a0fe584e7276a077cd8cd5f2300c84676e41763c /doc | |
| parent | 4e5c4683b7a54090323043ab9a67772baeecb1b1 (diff) | |
| parent | 2aa69c9b9d4511d35b372715d6ea4ccebb75a526 (diff) | |
Merge branch '2020-02-10-master-imports'
- Regulator fix
- Documentation fix
- Correct LOGLEVEL range
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/driver-model/design.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/driver-model/design.rst b/doc/driver-model/design.rst index 8fd28c0f528..5247ecc2768 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. |
