summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldo Conte <aldocontelk@gmail.com>2026-05-22 14:34:17 +0200
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:48 +0100
commitc9dc65030e5705d17c9605a17732d15b71898d0b (patch)
tree34233ed315b174f4708ff8e85fff5ba98cc535cc
parentdf94df71711516298719a4507a792f0bb9fd0837 (diff)
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 <aldocontelk@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/light/tcs3472.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c
index b0e8d5661567..24b71d4543c5 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;