Re: [PATCH 6/6] i2c: Make remove callback return void

From
Uwe Kleine-König <hidden>
Date
2022-06-29 20:39:19
Also in
chrome-platform, dri-devel, linux-mediatek, linux-staging
Reply to
Crt Mori, 2022-06-29
Hello,

On Wed, Jun 29, 2022 at 09:24:55AM +0200, Crt Mori wrote:
On Tue, 28 Jun 2022 at 16:04, Uwe Kleine-König
[off-list ref] wrote:
quoted
 static const struct i2c_device_id mlx90614_id[] = {
diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c
index 7ee7ff8047a4..e8ef47147e2b 100644
--- a/drivers/iio/temperature/mlx90632.c
+++ b/drivers/iio/temperature/mlx90632.c
@@ -924,7 +924,7 @@ static int mlx90632_probe(struct i2c_client *client,
        return iio_device_register(indio_dev);
 }

-static int mlx90632_remove(struct i2c_client *client)
+static void mlx90632_remove(struct i2c_client *client)
 {
        struct iio_dev *indio_dev = i2c_get_clientdata(client);
        struct mlx90632_data *data = iio_priv(indio_dev);
@@ -936,8 +936,6 @@ static int mlx90632_remove(struct i2c_client *client)
        pm_runtime_put_noidle(&client->dev);

        mlx90632_sleep(data);
-
-       return 0;
 }
For both mlx drivers

Reviewed-by: "Crt Mori <cmo@melexis.com>"
Thanks, it was more complicated than (IMHO) necessary to find these
lines. I suggest to strip the irrelevant part the quoted mail for the
next time.

I added your tag without the quotes to my tree.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

Attachments

Thread (30 messages) 30 messages, 22 authors, last reply 2022-07-18
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