Skip to content

Commit 64df114

Browse files
l1kgregkh
authored andcommitted
driver core: Silence device links sphinx warning
Silence this warning emitted by sphinx: include/linux/device.h:938: warning: No description found for parameter 'links' While at it, fix typos in comments of device links code. Cc: Rafael J. Wysocki <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Silvio Fricke <[email protected]> Signed-off-by: Lukas Wunner <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 88bcef5 commit 64df114

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/base/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int device_reorder_to_tail(struct device *dev, void *not_used)
172172
*
173173
* The supplier device is required to be registered when this function is called
174174
* and NULL will be returned if that is not the case. The consumer device need
175-
* not be registerd, however.
175+
* not be registered, however.
176176
*/
177177
struct device_link *device_link_add(struct device *consumer,
178178
struct device *supplier, u32 flags)
@@ -225,7 +225,7 @@ struct device_link *device_link_add(struct device *consumer,
225225
INIT_LIST_HEAD(&link->c_node);
226226
link->flags = flags;
227227

228-
/* Deterine the initial link state. */
228+
/* Determine the initial link state. */
229229
if (flags & DL_FLAG_STATELESS) {
230230
link->status = DL_STATE_NONE;
231231
} else {

include/linux/device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ struct dev_links_info {
817817
* on. This shrinks the "Board Support Packages" (BSPs) and
818818
* minimizes board-specific #ifdefs in drivers.
819819
* @driver_data: Private pointer for driver specific info.
820+
* @links: Links to suppliers and consumers of this device.
820821
* @power: For device power management.
821822
* See Documentation/power/devices.txt for details.
822823
* @pm_domain: Provide callbacks that are executed during system suspend,

0 commit comments

Comments
 (0)