Skip to content

Commit 3976e97

Browse files
Uwe Kleine-KönigLee Jones
authored andcommitted
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 <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 563edf8 commit 3976e97

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

drivers/video/backlight/ili9320.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,9 @@ int ili9320_probe_spi(struct spi_device *spi,
251251
}
252252
EXPORT_SYMBOL_GPL(ili9320_probe_spi);
253253

254-
int ili9320_remove(struct ili9320 *ili)
254+
void ili9320_remove(struct ili9320 *ili)
255255
{
256256
ili9320_power(ili, FB_BLANK_POWERDOWN);
257-
return 0;
258257
}
259258
EXPORT_SYMBOL_GPL(ili9320_remove);
260259

drivers/video/backlight/ili9320.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern int ili9320_write_regs(struct ili9320 *ili,
6868
extern int ili9320_probe_spi(struct spi_device *spi,
6969
struct ili9320_client *cli);
7070

71-
extern int ili9320_remove(struct ili9320 *lcd);
71+
extern void ili9320_remove(struct ili9320 *lcd);
7272
extern void ili9320_shutdown(struct ili9320 *lcd);
7373

7474
/* PM */

drivers/video/backlight/vgg2432a4.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ static int vgg2432a4_probe(struct spi_device *spi)
235235

236236
static int vgg2432a4_remove(struct spi_device *spi)
237237
{
238-
return ili9320_remove(spi_get_drvdata(spi));
238+
ili9320_remove(spi_get_drvdata(spi));
239+
240+
return 0;
239241
}
240242

241243
static void vgg2432a4_shutdown(struct spi_device *spi)

0 commit comments

Comments
 (0)