From: Aldo Conte Date: Fri, 22 May 2026 12:34:17 +0000 (+0200) Subject: iio: tcs3472: use local struct device * for remaining cases X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9dc65030e5705d17c9605a17732d15b71898d0b;p=thirdparty%2Flinux.git iio: tcs3472: use local struct device * for remaining cases Use the local 'struct device *dev' variable introduced for the devm calls also for the dev_info() calls in tcs3472_probe(), to keep the probe function consistent. No functional change. Signed-off-by: Aldo Conte Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index b0e8d56615671..24b71d4543c52 100644 --- a/drivers/iio/light/tcs3472.c +++ b/drivers/iio/light/tcs3472.c @@ -480,9 +480,9 @@ static int tcs3472_probe(struct i2c_client *client) return ret; if (ret == 0x44) - dev_info(&client->dev, "TCS34721/34725 found\n"); + dev_info(dev, "TCS34721/34725 found\n"); else if (ret == 0x4d) - dev_info(&client->dev, "TCS34723/34727 found\n"); + dev_info(dev, "TCS34723/34727 found\n"); else return -ENODEV;