Re: [PATCH 0/5] spi: make remove callback a void function

From
Lee Jones <hidden>
Date
2022-01-25 09:34:23
Also in
alsa-devel, dri-devel, linux-can, linux-clk, linux-gpio, linux-hwmon, linux-iio, linux-input, linux-integrity, linux-leds, linux-media, linux-mmc, linux-omap, linux-rtc, linux-serial, linux-spi, linux-staging, linux-usb, linux-wireless, lkml, netdev, platform-driver-x86
Reply to
Uwe Kleine-König, 2022-01-23
My usual mailer won't let me reply to this many people, so I'm using Gmail.

No idea what chaos this will cause, but here goes ...
The value returned by an spi driver's remove function is mostly ignored.
(Only an error message is printed if the value is non-zero that the
error is ignored.)

So change the prototype of the remove function to return no value. This
way driver authors are not tempted to assume that passing an error to
the upper layer is a good idea. All drivers are adapted accordingly.
There is no intended change of behaviour, all callbacks were prepared to
return 0 before.

Signed-off-by: Uwe Kleine-König <redacted>
---
[...]
 drivers/mfd/arizona-spi.c                             |  4 +---
 drivers/mfd/da9052-spi.c                             |  3 +--
 drivers/mfd/ezx-pcap.c                                |  4 +---
 drivers/mfd/madera-spi.c                             |  4 +---
 drivers/mfd/mc13xxx-spi.c                           |  3 +--
 drivers/mfd/rsmu_spi.c                                |  4 +---
 drivers/mfd/stmpe-spi.c                               |  4 +---
 drivers/mfd/tps65912-spi.c                          |  4 +---
 drivers/video/backlight/ams369fg06.c         |  3 +--
 drivers/video/backlight/corgi_lcd.c               |  3 +--
 drivers/video/backlight/ili922x.c                    |  3 +--
 drivers/video/backlight/l4f00242t03.c           |  3 +--
 drivers/video/backlight/lms501kf03.c            |  3 +--
 drivers/video/backlight/ltv350qv.c                 |  3 +--
 drivers/video/backlight/tdo24m.c                  |  3 +--
 drivers/video/backlight/tosa_lcd.c                |  4 +---
 drivers/video/backlight/vgg2432a4.c            |  4 +---
If it's okay with Mark, it's okay with me.

Acked-by: Lee Jones <redacted>

-- 
Lee Jones [李琼斯]
Linaro Services Principle Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Thread (6 messages) 6 messages, 3 authors, last reply 2022-01-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help