linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/13] backlight: Convert to platform remove callback returning void
@ 2023-03-08  7:39 Uwe Kleine-König
  2023-03-08  7:39 ` [PATCH 01/13] backlight: aat2870_bl: " Uwe Kleine-König
                   ` (13 more replies)
  0 siblings, 14 replies; 30+ messages in thread
From: Uwe Kleine-König @ 2023-03-08  7:39 UTC (permalink / raw)
  To: Lee Jones, Daniel Thompson, Jingoo Han, Helge Deller,
	Michael Hennerich, Support Opensource, Matthias Brugger,
	Thierry Reding, Andy Gross, Bjorn Andersson
  Cc: dri-devel, linux-fbdev, kernel, AngeloGioacchino Del Regno,
	linux-arm-kernel, linux-mediatek, linux-pwm, Konrad Dybcio,
	linux-arm-msm

Hello,

this patch series adapts the platform drivers below drivers/video/backlight to
use the .remove_new() callback. Compared to the traditional .remove() callback
.remove_new() returns no value. This is a good thing because the driver core
doesn't (and cannot) cope for errors during remove. The only effect of a
non-zero return value in .remove() is that the driver core emits a warning. The
device is removed anyhow and an early return from .remove() usually yields a
resource leak.

By changing the remove callback to return void driver authors cannot
reasonably assume any more that there is some kind of cleanup later.

All drivers in drivers/video/backlight returned zero unconditionally in their
remove callback, so they could all be converted trivially to .remove_new().

Note that this series depends on commit 5c5a7680e67b ("platform: Provide
a remove callback that returns no value") which is included in v6.3-rc1.

Best regards
Uwe

Uwe Kleine-König (13):
  backlight: aat2870_bl: Convert to platform remove callback returning
    void
  backlight: adp5520_bl: Convert to platform remove callback returning
    void
  backlight: cr_bllcd: Convert to platform remove callback returning
    void
  backlight: da9052_bl: Convert to platform remove callback returning
    void
  backlight: hp680_bl: Convert to platform remove callback returning
    void
  backlight: led_bl: Convert to platform remove callback returning void
  backlight: lm3533_bl: Convert to platform remove callback returning
    void
  backlight: lp8788_bl: Convert to platform remove callback returning
    void
  backlight: mt6370-backlight: Convert to platform remove callback
    returning void
  backlight: pwm_bl: Convert to platform remove callback returning void
  backlight: qcom-wled: Convert to platform remove callback returning
    void
  backlight: rt4831-backlight: Convert to platform remove callback
    returning void
  backlight: sky81452-backlight: Convert to platform remove callback
    returning void

 drivers/video/backlight/aat2870_bl.c         | 6 ++----
 drivers/video/backlight/adp5520_bl.c         | 6 ++----
 drivers/video/backlight/cr_bllcd.c           | 6 ++----
 drivers/video/backlight/da9052_bl.c          | 6 ++----
 drivers/video/backlight/hp680_bl.c           | 6 ++----
 drivers/video/backlight/led_bl.c             | 6 ++----
 drivers/video/backlight/lm3533_bl.c          | 6 ++----
 drivers/video/backlight/lp8788_bl.c          | 6 ++----
 drivers/video/backlight/mt6370-backlight.c   | 6 ++----
 drivers/video/backlight/pwm_bl.c             | 6 ++----
 drivers/video/backlight/qcom-wled.c          | 6 ++----
 drivers/video/backlight/rt4831-backlight.c   | 6 ++----
 drivers/video/backlight/sky81452-backlight.c | 6 ++----
 13 files changed, 26 insertions(+), 52 deletions(-)

base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
-- 
2.39.1

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2023-03-16 13:52 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08  7:39 [PATCH 00/13] backlight: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-08  7:39 ` [PATCH 01/13] backlight: aat2870_bl: " Uwe Kleine-König
2023-03-16 13:47   ` Lee Jones
2023-03-08  7:39 ` [PATCH 02/13] backlight: adp5520_bl: " Uwe Kleine-König
2023-03-08  7:45   ` Hennerich, Michael
2023-03-16 13:47   ` Lee Jones
2023-03-08  7:39 ` [PATCH 03/13] backlight: cr_bllcd: " Uwe Kleine-König
2023-03-16 13:48   ` Lee Jones
2023-03-08  7:39 ` [PATCH 04/13] backlight: da9052_bl: " Uwe Kleine-König
2023-03-08  9:23   ` DLG Adam Ward
2023-03-16 13:48   ` Lee Jones
2023-03-08  7:39 ` [PATCH 05/13] backlight: hp680_bl: " Uwe Kleine-König
2023-03-16 13:49   ` Lee Jones
2023-03-08  7:39 ` [PATCH 06/13] backlight: led_bl: " Uwe Kleine-König
2023-03-16 13:49   ` Lee Jones
2023-03-08  7:39 ` [PATCH 07/13] backlight: lm3533_bl: " Uwe Kleine-König
2023-03-16 13:50   ` Lee Jones
2023-03-08  7:39 ` [PATCH 08/13] backlight: lp8788_bl: " Uwe Kleine-König
2023-03-16 13:50   ` Lee Jones
2023-03-08  7:39 ` [PATCH 09/13] backlight: mt6370-backlight: " Uwe Kleine-König
2023-03-16 13:50   ` Lee Jones
2023-03-08  7:39 ` [PATCH 10/13] backlight: pwm_bl: " Uwe Kleine-König
2023-03-16 13:51   ` Lee Jones
2023-03-08  7:39 ` [PATCH 11/13] backlight: qcom-wled: " Uwe Kleine-König
2023-03-16 13:51   ` Lee Jones
2023-03-08  7:39 ` [PATCH 12/13] backlight: rt4831-backlight: " Uwe Kleine-König
2023-03-16 13:51   ` Lee Jones
2023-03-08  7:39 ` [PATCH 13/13] backlight: sky81452-backlight: " Uwe Kleine-König
2023-03-16 13:52   ` Lee Jones
2023-03-08 12:04 ` [PATCH 00/13] backlight: " Daniel Thompson

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).