iio: temperature: max30208: Remove an unused field in struct max30208_data
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 1 May 2024 09:19:41 +0000 (11:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2024 08:48:56 +0000 (09:48 +0100)
In "struct max30208_data", the 'indio_dev' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/73f9f540ecdc7c10e833e6fc782324ae7d34ba9c.1714555144.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/max30208.c

index 48be03852cd8dfa869ebe244be7458758e1c1fb4..720469f9dc36fb9c25fccbc49dfafc83e479848c 100644 (file)
@@ -34,7 +34,6 @@
 
 struct max30208_data {
        struct i2c_client *client;
-       struct iio_dev *indio_dev;
        struct mutex lock; /* Lock to prevent concurrent reads of temperature readings */
 };