backlight: backlight: Fix doc for backlight_device_get_by_name
Subsystems (2)
PATCH 1/1 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 0f6a3256fd81 ("backlight: backlight: Drop backlight_put()")
Signed-off-by Miaoqian Lin <[email protected]>
--- drivers/video/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/backlight.c +1 -1
@@ -501,7 +501,7 @@ EXPORT_SYMBOL(backlight_device_get_by_type);* * This function looks up a backlight device by its name. It obtains a reference * on the backlight device and it is the caller's responsibility to drop the -* reference by calling backlight_put(). +* reference by calling put_device(). * * Returns: * A pointer to the backlight device if found, otherwise NULL.
Signature · 1 line
2.25.1
Quoted 5 lines · Miaoqian Lin
backlight_put()has been dropped, we should callput_device()to drop the reference taken bybacklight_device_get_by_name().Fixes 0f6a3256fd81 ("backlight: backlight: Drop backlight_put()")Signed-off-by Miaoqian Lin <[email protected]>
Reviewed-by Daniel Thompson <[email protected]>
Daniel.
Quoted 8 lines · Miaoqian Lin
backlight_put()has been dropped, we should callput_device()to drop the reference taken bybacklight_device_get_by_name().Fixes 0f6a3256fd81 ("backlight: backlight: Drop backlight_put()")Signed-off-by Miaoqian Lin <[email protected]>--- drivers/video/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Signature · 1 line
Lee Jones [李琼斯]