]> git.dujemihanovic.xyz Git - linux.git/commitdiff
video: backlight: ili9320: Make ili9320_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 19 Oct 2021 12:09:27 +0000 (14:09 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 20 Oct 2021 14:13:59 +0000 (15:13 +0100)
Up to now ili9320_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.

Also the return value of spi remove callbacks is ignored anyway.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211019120927.3822792-1-u.kleine-koenig@pengutronix.de
drivers/video/backlight/ili9320.c
drivers/video/backlight/ili9320.h
drivers/video/backlight/vgg2432a4.c

index 168ac79523d76ed8a0b7ef80e59676eccb91fc0c..2acd2708f8cad9ac80aadf2631737364df08c849 100644 (file)
@@ -251,10 +251,9 @@ int ili9320_probe_spi(struct spi_device *spi,
 }
 EXPORT_SYMBOL_GPL(ili9320_probe_spi);
 
-int ili9320_remove(struct ili9320 *ili)
+void ili9320_remove(struct ili9320 *ili)
 {
        ili9320_power(ili, FB_BLANK_POWERDOWN);
-       return 0;
 }
 EXPORT_SYMBOL_GPL(ili9320_remove);
 
index fc59e389d59a9e97f111e64f4bb4deae94b9031c..8213cc6e9184acfa1ad4e8c85d21fefe42998f1c 100644 (file)
@@ -68,7 +68,7 @@ extern int ili9320_write_regs(struct ili9320 *ili,
 extern int ili9320_probe_spi(struct spi_device *spi,
                             struct ili9320_client *cli);
 
-extern int ili9320_remove(struct ili9320 *lcd);
+extern void ili9320_remove(struct ili9320 *lcd);
 extern void ili9320_shutdown(struct ili9320 *lcd);
 
 /* PM */
index 9bf277ca4ae94f114cbd4bc8ef04e106965f0aaa..3567b45f9ba9f270cf86901815cc8ce5c10c3ed9 100644 (file)
@@ -235,7 +235,9 @@ static int vgg2432a4_probe(struct spi_device *spi)
 
 static int vgg2432a4_remove(struct spi_device *spi)
 {
-       return ili9320_remove(spi_get_drvdata(spi));
+       ili9320_remove(spi_get_drvdata(spi));
+
+       return 0;
 }
 
 static void vgg2432a4_shutdown(struct spi_device *spi)