提交 42734daf 编写于 作者: H Henrik Kretzschmar 提交者: Greg Kroah-Hartman

[PATCH] Driver core: kernel-doc in drivers/base/core.c corrections

Corrects the kerneldocs for device_create() and device_destroy()
with an eye on coding style, grammar and readability.
Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7d12e9de
...@@ -559,20 +559,20 @@ static void device_create_release(struct device *dev) ...@@ -559,20 +559,20 @@ static void device_create_release(struct device *dev)
/** /**
* device_create - creates a device and registers it with sysfs * device_create - creates a device and registers it with sysfs
* @class: pointer to the struct class that this device should be registered to. * @class: pointer to the struct class that this device should be registered to
* @parent: pointer to the parent struct device of this new device, if any. * @parent: pointer to the parent struct device of this new device, if any
* @devt: the dev_t for the char device to be added. * @devt: the dev_t for the char device to be added
* @fmt: string for the class device's name * @fmt: string for the device's name
*
* This function can be used by char device classes. A struct device
* will be created in sysfs, registered to the specified class.
* *
* This function can be used by char device classes. A struct
* device will be created in sysfs, registered to the specified
* class.
* A "dev" file will be created, showing the dev_t for the device, if * A "dev" file will be created, showing the dev_t for the device, if
* the dev_t is not 0,0. * the dev_t is not 0,0.
* If a pointer to a parent struct device is passed in, the newly * If a pointer to a parent struct device is passed in, the newly created
* created struct device will be a child of that device in sysfs. The * struct device will be a child of that device in sysfs.
* pointer to the struct device will be returned from the call. Any * The pointer to the struct device will be returned from the call.
* further sysfs files that might be required can be created using this * Any further sysfs files that might be required can be created using this
* pointer. * pointer.
* *
* Note: the struct class passed to this function must have previously * Note: the struct class passed to this function must have previously
...@@ -620,11 +620,11 @@ EXPORT_SYMBOL_GPL(device_create); ...@@ -620,11 +620,11 @@ EXPORT_SYMBOL_GPL(device_create);
/** /**
* device_destroy - removes a device that was created with device_create() * device_destroy - removes a device that was created with device_create()
* @class: the pointer to the struct class that this device was registered * with. * @class: pointer to the struct class that this device was registered with
* @devt: the dev_t of the device that was previously registered. * @devt: the dev_t of the device that was previously registered
* *
* This call unregisters and cleans up a class device that was created with a * This call unregisters and cleans up a device that was created with a
* call to class_device_create() * call to device_create().
*/ */
void device_destroy(struct class *class, dev_t devt) void device_destroy(struct class *class, dev_t devt)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册