Skip to content

Commit 9cc93be

Browse files
Dan Murphypavelmachek
authored andcommitted
leds: core: Fix leds.h structure documentation
Update the leds.h structure documentation to define the correct arguments. Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 4b83cf0 commit 9cc93be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/linux/leds.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void led_set_brightness(struct led_classdev *led_cdev,
245245
/**
246246
* led_set_brightness_sync - set LED brightness synchronously
247247
* @led_cdev: the LED to set
248-
* @brightness: the brightness to set it to
248+
* @value: the brightness to set it to
249249
*
250250
* Set an LED's brightness immediately. This function will block
251251
* the caller for the time required for accessing device registers,
@@ -298,8 +298,7 @@ void led_sysfs_enable(struct led_classdev *led_cdev);
298298
/**
299299
* led_compose_name - compose LED class device name
300300
* @dev: LED controller device object
301-
* @child: child fwnode_handle describing a LED or a group of synchronized LEDs;
302-
* it must be provided only for fwnode based LEDs
301+
* @init_data: the LED class device initialization data
303302
* @led_classdev_name: composed LED class device name
304303
*
305304
* Create LED class device name basing on the provided init_data argument.

0 commit comments

Comments
 (0)