Skip to content

Commit c9dc650

Browse files
aldocontelkjic23
authored andcommitted
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>
1 parent df94df7 commit c9dc650

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/iio/light/tcs3472.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ static int tcs3472_probe(struct i2c_client *client)
480480
return ret;
481481

482482
if (ret == 0x44)
483-
dev_info(&client->dev, "TCS34721/34725 found\n");
483+
dev_info(dev, "TCS34721/34725 found\n");
484484
else if (ret == 0x4d)
485-
dev_info(&client->dev, "TCS34723/34727 found\n");
485+
dev_info(dev, "TCS34723/34727 found\n");
486486
else
487487
return -ENODEV;
488488

0 commit comments

Comments
 (0)