2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-05 03:44:03 +08:00
linux-next/drivers/auxdisplay
Uwe Kleine-König 9ea02f7cc3 auxdisplay: hd44780: Convert to platform remove callback returning void
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 ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2024-03-12 17:36:49 +02:00
..
arm-charlcd.c auxdisplay: Replace HTTP links with HTTPS ones 2020-08-08 16:10:03 +02:00
cfag12864b.c auxdisplay: Replace symbolic permissions with octal permissions 2021-07-16 07:42:35 +02:00
cfag12864bfb.c auxdisplay: cfag12864bfb: Convert to platform remove callback returning void 2024-03-12 17:36:49 +02:00
charlcd.c auxdisplay: charlcd: checking for pointer reference before dereferencing 2021-11-24 11:46:52 +01:00
charlcd.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780_common.c auxdisplay: hd44780: move cursor home after clear display command 2023-08-19 21:53:49 +02:00
hd44780_common.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780.c auxdisplay: hd44780: Convert to platform remove callback returning void 2024-03-12 17:36:49 +02:00
ht16k33.c auxdisplay: ht16k33: Drop struct ht16k33_seg 2024-02-26 18:07:16 +02:00
img-ascii-lcd.c auxdisplay: linedisp: Allocate buffer for the string 2024-02-26 18:02:19 +02:00
Kconfig auxdisplay: Add 7-segment LED display driver 2024-03-08 14:15:47 +02:00
ks0108.c auxdisplay: ks0108: remove superfluous header files 2021-10-22 00:04:43 +02:00
lcd2s.c auxdisplay: Switch i2c drivers back to use .probe() 2023-06-02 13:23:32 +02:00
line-display.c auxdisplay: linedisp: Allocate buffer for the string 2024-02-26 18:02:19 +02:00
line-display.h auxdisplay: linedisp: Allocate buffer for the string 2024-02-26 18:02:19 +02:00
Makefile auxdisplay: Add 7-segment LED display driver 2024-03-08 14:15:47 +02:00
max6959.c auxdisplay: Add driver for MAX695x 7-segment LED controllers 2024-02-26 20:02:35 +02:00
panel.c auxdisplay: panel: Switch to use module_parport_driver() 2024-02-15 13:24:53 +02:00
seg-led-gpio.c auxdisplay: seg-led-gpio: Import linedisp namespace 2024-03-11 11:56:45 +02:00