Uwe Kleine-König 730cd2f54e iio:chemical:ccs811: Improve error reporting for problems during .remove()
Returning an error value in an i2c remove callback results in a generic
error message being emitted by the i2c core, but otherwise it doesn't
make a difference. The device goes away anyhow and the devm cleanups are
called.

So instead of triggering the generic i2c error message, emit a more
helpful message if a problem occurs and return 0 to suppress the generic
message.

This patch is a preparation for making i2c remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220515155929.338656-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-11 14:35:27 +01:00
..
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-06-04 13:42:53 -07:00
2022-06-03 11:48:47 -07:00
2022-05-15 18:31:28 -06:00
2022-06-03 11:48:47 -07:00
2022-05-29 11:38:27 -07:00
2022-05-25 16:18:27 -07:00
2022-06-05 09:12:28 -07:00
2022-06-04 14:04:27 -07:00
2022-06-03 11:48:47 -07:00
2022-05-26 21:08:40 -07:00
2022-06-04 13:42:53 -07:00
2022-05-31 09:56:54 -07:00
2022-06-02 15:23:54 -07:00
2022-06-03 10:25:56 -07:00
2022-06-02 15:23:54 -07:00
2022-06-02 15:23:54 -07:00
2022-06-04 14:04:27 -07:00
2022-05-27 21:24:19 -07:00
2022-06-05 09:25:12 -07:00
2022-05-25 16:18:27 -07:00
2022-05-25 15:02:26 +02:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-05-23 21:06:11 -07:00
2022-05-19 16:56:17 +02:00
2022-05-30 11:01:50 -07:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-06-03 11:48:47 -07:00
2022-06-05 09:25:12 -07:00
2022-06-03 11:48:47 -07:00
2022-06-03 11:48:47 -07:00
2022-06-04 13:42:53 -07:00
2022-06-05 09:25:12 -07:00
2022-06-03 11:48:47 -07:00
2022-06-01 13:49:15 -07:00
2022-05-31 12:45:10 -04:00
2022-06-02 15:27:44 -07:00
2022-06-04 13:42:53 -07:00
2022-06-05 09:25:12 -07:00
2022-06-05 09:25:12 -07:00