diff options
author | Lukas Wunner <lukas@wunner.de> | 2016-12-04 07:10:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-12-05 09:02:20 -0500 |
commit | 64df1148876e35e81e91195e01c8197edc66fcc5 (patch) | |
tree | 5a2bf9917660cb4b31705e449bc947e7ed91cf35 | |
parent | 88bcef508f230c05deaa6e51ddf90ccae15a2824 (diff) |
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 <rafael@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/core.c | 4 | ||||
-rw-r--r-- | include/linux/device.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index b8b2f6105476..020ea7f05520 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -172,7 +172,7 @@ static int device_reorder_to_tail(struct device *dev, void *not_used) | |||
172 | * | 172 | * |
173 | * The supplier device is required to be registered when this function is called | 173 | * The supplier device is required to be registered when this function is called |
174 | * and NULL will be returned if that is not the case. The consumer device need | 174 | * 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. |
176 | */ | 176 | */ |
177 | struct device_link *device_link_add(struct device *consumer, | 177 | struct device_link *device_link_add(struct device *consumer, |
178 | struct device *supplier, u32 flags) | 178 | struct device *supplier, u32 flags) |
@@ -225,7 +225,7 @@ struct device_link *device_link_add(struct device *consumer, | |||
225 | INIT_LIST_HEAD(&link->c_node); | 225 | INIT_LIST_HEAD(&link->c_node); |
226 | link->flags = flags; | 226 | link->flags = flags; |
227 | 227 | ||
228 | /* Deterine the initial link state. */ | 228 | /* Determine the initial link state. */ |
229 | if (flags & DL_FLAG_STATELESS) { | 229 | if (flags & DL_FLAG_STATELESS) { |
230 | link->status = DL_STATE_NONE; | 230 | link->status = DL_STATE_NONE; |
231 | } else { | 231 | } else { |
diff --git a/include/linux/device.h b/include/linux/device.h index 4cd8e52033b0..67bbbee8fe02 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -817,6 +817,7 @@ struct dev_links_info { | |||
817 | * on. This shrinks the "Board Support Packages" (BSPs) and | 817 | * on. This shrinks the "Board Support Packages" (BSPs) and |
818 | * minimizes board-specific #ifdefs in drivers. | 818 | * minimizes board-specific #ifdefs in drivers. |
819 | * @driver_data: Private pointer for driver specific info. | 819 | * @driver_data: Private pointer for driver specific info. |
820 | * @links: Links to suppliers and consumers of this device. | ||
820 | * @power: For device power management. | 821 | * @power: For device power management. |
821 | * See Documentation/power/devices.txt for details. | 822 | * See Documentation/power/devices.txt for details. |
822 | * @pm_domain: Provide callbacks that are executed during system suspend, | 823 | * @pm_domain: Provide callbacks that are executed during system suspend, |