diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-19 14:09:27 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-10-20 16:13:59 +0200 |
commit | 3976e974df1fd3a718627b0c9bdfee1953baa0d5 (patch) | |
tree | 5cee1b9fcd7927b4c45e474b650c6ff525190608 /drivers/video/backlight/vgg2432a4.c | |
parent | backlight: Propagate errors from get_brightness() (diff) | |
download | linux-3976e974df1fd3a718627b0c9bdfee1953baa0d5.tar.xz linux-3976e974df1fd3a718627b0c9bdfee1953baa0d5.zip |
video: backlight: ili9320: Make ili9320_remove() return void
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
Diffstat (limited to 'drivers/video/backlight/vgg2432a4.c')
-rw-r--r-- | drivers/video/backlight/vgg2432a4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/backlight/vgg2432a4.c b/drivers/video/backlight/vgg2432a4.c index 9bf277ca4ae9..3567b45f9ba9 100644 --- a/drivers/video/backlight/vgg2432a4.c +++ b/drivers/video/backlight/vgg2432a4.c @@ -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) |