* [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name
@ 2022-12-15 7:19 Miaoqian Lin
2022-12-15 9:26 ` Daniel Thompson
2023-01-04 17:17 ` Lee Jones
0 siblings, 2 replies; 3+ messages in thread
From: Miaoqian Lin @ 2022-12-15 7:19 UTC (permalink / raw)
To: Lee Jones, Daniel Thompson, Jingoo Han, Helge Deller,
Sam Ravnborg, dri-devel, linux-fbdev, linux-kernel
Cc: linmq006
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 <linmq006@gmail.com>
---
drivers/video/backlight/backlight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
index b788ff3d0f45..6eea72aa8dbf 100644
--- a/drivers/video/backlight/backlight.c
+++ b/drivers/video/backlight/backlight.c
@@ -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.
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name
2022-12-15 7:19 [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name Miaoqian Lin
@ 2022-12-15 9:26 ` Daniel Thompson
2023-01-04 17:17 ` Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Thompson @ 2022-12-15 9:26 UTC (permalink / raw)
To: Miaoqian Lin
Cc: Lee Jones, Jingoo Han, Helge Deller, Sam Ravnborg, dri-devel,
linux-fbdev, linux-kernel
On Thu, Dec 15, 2022 at 11:19:01AM +0400, Miaoqian Lin wrote:
> 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 <linmq006@gmail.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Daniel.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name
2022-12-15 7:19 [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name Miaoqian Lin
2022-12-15 9:26 ` Daniel Thompson
@ 2023-01-04 17:17 ` Lee Jones
1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2023-01-04 17:17 UTC (permalink / raw)
To: Miaoqian Lin
Cc: Daniel Thompson, Jingoo Han, Helge Deller, Sam Ravnborg,
dri-devel, linux-fbdev, linux-kernel
On Thu, 15 Dec 2022, Miaoqian Lin wrote:
> 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 <linmq006@gmail.com>
> ---
> drivers/video/backlight/backlight.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-04 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15 7:19 [PATCH] backlight: backlight: Fix doc for backlight_device_get_by_name Miaoqian Lin
2022-12-15 9:26 ` Daniel Thompson
2023-01-04 17:17 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).