Skip to content

Commit 307e15b

Browse files
sjp38dbaluta
authored andcommitted
Documentation/device_model: Fix typos
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
1 parent 957e49b commit 307e15b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/teaching/labs/device_model.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ contains the following subdirectories:
6767
* firmware - information from system firmware (ACPI)
6868
* fs - information about mounted file systems
6969
* kernel - kernel status information (logged-in users, hotplug)
70-
* modules - the list of modules currently loaded
70+
* module - the list of modules currently loaded
7171
* power - information related to the power management subsystem
7272

7373
As you can see, there is a correlation between the kernel data structures
@@ -348,7 +348,7 @@ has the role of adding environment variables.
348348

349349
Other possible operations on a bus are iterating over the drivers or devices
350350
attached to it.
351-
Although we can not directly access them (lists of drives and devices
351+
Although we can not directly access them (lists of drivers and devices
352352
being stored in the private data of the driver, the ``subsys_private *p`` field),
353353
these can be iterated using the :c:macro:`bus_for_each_dev` and
354354
:c:macro:`bus_for_each_drv` macros.
@@ -849,14 +849,14 @@ protocols are available:
849849

850850
The kernel contains a bus, called ``pnp_bus``, that is used for connecting by
851851
many drivers.
852-
The implementation and working with the bus follow the model Linux Device Model
853-
and is very similar to what we discussed above.
852+
The implementation and working with the bus follow the Linux Device Model and
853+
is very similar to what we discussed above.
854854

855855
The main functions and structures exported by the bus, which can be used by
856856
drivers, are:
857857

858858
* :c:type:`struct pnp_driver` - driver type associated to the bus
859-
* :c:func:`pnp_register_driver` - function used to record a PNP driver in the system
859+
* :c:func:`pnp_register_driver` - function used to register a PNP driver in the system
860860
* :c:func:`pnp_unregister_driver` - function used to unregister a PNP driver from the system
861861

862862
As noted in previous sections, the bus has a function called ``match`` used to

0 commit comments

Comments
 (0)