Re: [PATCH 11/13] backlight: qcom-wled: Convert to platform remove callback returning void

2023-03-16 Thread Lee Jones
On Wed, 08 Mar 2023, Uwe Kleine-König wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results

[PATCH 11/13] backlight: qcom-wled: Convert to platform remove callback returning void

2023-03-07 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to