linux-xiaomi-chiron/include/linux/spi
Uwe Kleine-König 06de2cd788 gpio: max730x: Make __max730x_remove() return void
An spi or i2c remove callback is only called for devices that probed
successfully. In this case this implies that __max730x_probe() set a
non-NULL driver data. So the check ts == NULL is never true. With this
check dropped, __max730x_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 i2c and spi remove callbacks is ignored anyway.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
2021-10-13 19:52:26 +02:00
..
ad7877.h
ads7846.h
altera.h spi: altera: separate core code from platform code 2021-04-20 17:26:40 +01:00
at73c213.h
at86rf230.h
cc2520.h
corgi_lcd.h backlight: corgi: Convert to use GPIO descriptors 2020-03-25 09:30:46 +00:00
ds1305.h
eeprom.h eeprom: at25: allow page sizes greater than 16 bit 2020-08-28 12:08:08 +02:00
flash.h
libertas_spi.h
max7301.h gpio: max730x: Make __max730x_remove() return void 2021-10-13 19:52:26 +02:00
mc33880.h
mmc_spi.h mmc: mmc_spi: Make of_mmc_spi.c resource provider agnostic 2021-04-23 09:29:49 +02:00
mxs-spi.h
pxa2xx_spi.h spi: pxa2xx: Fix style of and typos in the comments and messages 2021-05-18 14:05:35 +01:00
rspi.h
s3c24xx-fiq.h ARM: s3c24xx: move spi fiq handler into platform 2020-08-19 21:45:38 +02:00
s3c24xx.h ARM: s3c24xx: spi: avoid hardcoding fiq number in driver 2020-08-20 17:43:45 +02:00
sh_hspi.h
sh_msiof.h
spi-fsl-dspi.h
spi-mem.h spi: spi-mem: add automatic poll status functions 2021-06-03 14:04:56 +01:00
spi.h spi: modify set_cs_timing parameter 2021-08-05 16:42:54 +01:00
spi_bitbang.h
spi_gpio.h
spi_oc_tiny.h spi: oc-tiny: Use GPIO descriptors 2019-12-27 01:08:11 +00:00
tdo24m.h
tle62x0.h
xilinx_spi.h