driver core: attribute_container: fix W=1 warnings

Fix the following make W=1 kernel build warnings:

  drivers/base/attribute_container.c:304: warning: Function parameter or member 'fn' not described in 'attribute_container_device_trigger_safe'
  drivers/base/attribute_container.c:304: warning: Function parameter or member 'undo' not described in 'attribute_container_device_trigger_safe'
  drivers/base/attribute_container.c:357: warning: Function parameter or member 'fn' not described in 'attribute_container_device_trigger'

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210512072233.3817056-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Yang Yingliang 2021-05-12 15:22:33 +08:00 committed by Greg Kroah-Hartman
parent 8c60a14104
commit a6daf4bb5f

View File

@ -284,8 +284,8 @@ fail:
* matching classdev or fail all of them. * matching classdev or fail all of them.
* *
* @dev: The generic device to run the trigger for * @dev: The generic device to run the trigger for
* @fn the function to execute for each classdev. * @fn: the function to execute for each classdev.
* @undo A function to undo the work previously done in case of error * @undo: A function to undo the work previously done in case of error
* *
* This function is a safe version of * This function is a safe version of
* attribute_container_device_trigger. It stops on the first error and * attribute_container_device_trigger. It stops on the first error and
@ -343,7 +343,7 @@ attribute_container_device_trigger_safe(struct device *dev,
* attribute_container_device_trigger - execute a trigger for each matching classdev * attribute_container_device_trigger - execute a trigger for each matching classdev
* *
* @dev: The generic device to run the trigger for * @dev: The generic device to run the trigger for
* @fn the function to execute for each classdev. * @fn: the function to execute for each classdev.
* *
* This function is for executing a trigger when you need to know both * This function is for executing a trigger when you need to know both
* the container and the classdev. If you only care about the * the container and the classdev. If you only care about the