Skip to content

Commit 3755b46

Browse files
Yuuoniylag-linaro
authored andcommitted
backlight: backlight: Fix doc for backlight_device_get_by_name
backlight_put() has been dropped, we should call put_device() to drop the reference taken by backlight_device_get_by_name(). Fixes: 0f6a325 ("backlight: backlight: Drop backlight_put()") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1b929c0 commit 3755b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/backlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ EXPORT_SYMBOL(backlight_device_get_by_type);
501501
*
502502
* This function looks up a backlight device by its name. It obtains a reference
503503
* on the backlight device and it is the caller's responsibility to drop the
504-
* reference by calling backlight_put().
504+
* reference by calling put_device().
505505
*
506506
* Returns:
507507
* A pointer to the backlight device if found, otherwise NULL.

0 commit comments

Comments
 (0)