Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lukas Wunner and committed by
Greg Kroah-Hartman
64df1148 88bcef50

+3 -2
+2 -2
drivers/base/core.c
··· 172 172 * 173 173 * The supplier device is required to be registered when this function is called 174 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 177 struct device_link *device_link_add(struct device *consumer, 178 178 struct device *supplier, u32 flags) ··· 225 225 INIT_LIST_HEAD(&link->c_node); 226 226 link->flags = flags; 227 227 228 - /* Deterine the initial link state. */ 228 + /* Determine the initial link state. */ 229 229 if (flags & DL_FLAG_STATELESS) { 230 230 link->status = DL_STATE_NONE; 231 231 } else {
+1
include/linux/device.h
··· 817 817 * on. This shrinks the "Board Support Packages" (BSPs) and 818 818 * minimizes board-specific #ifdefs in drivers. 819 819 * @driver_data: Private pointer for driver specific info. 820 + * @links: Links to suppliers and consumers of this device. 820 821 * @power: For device power management. 821 822 * See Documentation/power/devices.txt for details. 822 823 * @pm_domain: Provide callbacks that are executed during system suspend,