WSL2-Linux-Kernel/Documentation/i2c
Uwe Kleine-König ed5c2f5fd1 i2c: Make remove callback return void
The value returned by an i2c 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.

Reviewed-by: Peter Senna Tschudin <peter.senna@gmail.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Crt Mori <cmo@melexis.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Marek Behún <kabel@kernel.org> # for leds-turris-omnia
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Machata <petrm@nvidia.com> # for mlxsw
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com> # for surface3_power
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> # for bmc150-accel-i2c + kxcjk-1013
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> # for media/* + staging/media/*
Acked-by: Miguel Ojeda <ojeda@kernel.org> # for auxdisplay/ht16k33 + auxdisplay/lcd2s
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # for versaclock5
Reviewed-by: Ajay Gupta <ajayg@nvidia.com> # for ucsi_ccg
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for iio
Acked-by: Peter Rosin <peda@axentia.se> # for i2c-mux-*, max9860
Acked-by: Adrien Grassein <adrien.grassein@gmail.com> # for lontium-lt8912b
Reviewed-by: Jean Delvare <jdelvare@suse.de> # for hwmon, i2c-core and i2c/muxes
Acked-by: Corey Minyard <cminyard@mvista.com> # for IPMI
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> # for drivers/power
Acked-by: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-08-16 12:46:26 +02:00
..
busses i2c: i801: Add support for Intel Meteor Lake-P 2022-07-06 16:04:48 +02:00
muxes docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
dev-interface.rst Documentation: i2c: dev: 'block process call' is supported 2020-08-05 11:52:28 +02:00
dma-considerations.rst docs: i2c: call it "I2C" consistently 2020-01-29 22:01:24 +01:00
fault-codes.rst docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
functionality.rst docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
gpio-fault-injection.rst docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
i2c-protocol.rst docs: i2c: i2c-protocol: remove unused legend items 2022-08-11 23:05:11 +02:00
i2c-stub.rst docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
i2c-sysfs.rst docs: i2c: i2c-sysfs: fix hyperlinks 2022-08-11 23:25:05 +02:00
i2c-topology.rst docs: i2c: rename sections so the overall picture is clearer 2020-01-29 22:02:06 +01:00
i2c_bus.svg docs: i2c: rename i2c.svg to i2c_bus.svg 2020-04-20 15:45:41 -06:00
index.rst Documentation: i2c: add i2c-sysfs into index 2021-08-10 22:58:32 +02:00
instantiating-devices.rst docs: i2c: instantiating-devices: add syntax coloring to dts and C blocks 2022-08-11 23:07:19 +02:00
old-module-parameters.rst docs: i2c: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:38 -06:00
slave-eeprom-backend.rst i2c: slave-eeprom: update documentation 2020-07-04 08:17:53 +02:00
slave-interface.rst docs: i2c: call it "I2C" consistently 2020-01-29 22:01:24 +01:00
slave-testunit-backend.rst i2c: testunit: add support for block process calls 2021-02-12 11:11:04 +01:00
smbus-protocol.rst docs: i2c: smbus-protocol: improve DataLow/DataHigh definition 2022-08-11 23:06:11 +02:00
summary.rst Docs: Fixes link to I2C specification 2021-12-31 14:39:28 +01:00
ten-bit-addresses.rst docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
writing-clients.rst i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00