aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/backlight/ili922x.c
diff options
context:
space:
mode:
authorGravatar Mark Brown <broonie@kernel.org> 2022-02-09 14:32:59 +0000
committerGravatar Mark Brown <broonie@kernel.org> 2022-02-09 14:32:59 +0000
commit2cbfa2128662c6b841f68cd2fe54df199457e38a (patch)
tree868184bca677f97fa7bb9f3dad5de2f39543d769 /drivers/video/backlight/ili922x.c
parentspi: Add compatible for Mediatek MT8186 (diff)
parentspi: make remove callback a void function (diff)
downloadlinux-2cbfa2128662c6b841f68cd2fe54df199457e38a.tar.gz
linux-2cbfa2128662c6b841f68cd2fe54df199457e38a.tar.bz2
linux-2cbfa2128662c6b841f68cd2fe54df199457e38a.zip
spi: make remove callback a void function
Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>: this series goal is to change the spi remove callback's return value to void. After numerous patches nearly all drivers already return 0 unconditionally. The four first patches in this series convert the remaining three drivers to return 0, the final patch changes the remove prototype and converts all implementers. base-commit: 26291c54e111ff6ba87a164d85d4a4e134b7315c
Diffstat (limited to 'drivers/video/backlight/ili922x.c')
-rw-r--r--drivers/video/backlight/ili922x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c
index 328aba9cddad..e7b6bd827986 100644
--- a/drivers/video/backlight/ili922x.c
+++ b/drivers/video/backlight/ili922x.c
@@ -526,10 +526,9 @@ static int ili922x_probe(struct spi_device *spi)
return 0;
}
-static int ili922x_remove(struct spi_device *spi)
+static void ili922x_remove(struct spi_device *spi)
{
ili922x_poweroff(spi);
- return 0;
}
static struct spi_driver ili922x_driver = {