summaryrefslogtreecommitdiffstats
path: root/drivers/iio/temperature
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-05-01 11:19:41 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-05-27 10:48:56 +0200
commitf8107cd6f9b9279544f6ee917919b15d95c6385c (patch)
treef0f1b8fbb5aef4fd791b882172f33165ee1853bd /drivers/iio/temperature
parentiio: adc: ad7606: using claim_direct_scoped for code simplification (diff)
downloadlinux-f8107cd6f9b9279544f6ee917919b15d95c6385c.tar.xz
linux-f8107cd6f9b9279544f6ee917919b15d95c6385c.zip
iio: temperature: max30208: Remove an unused field in struct max30208_data
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>
Diffstat (limited to 'drivers/iio/temperature')
-rw-r--r--drivers/iio/temperature/max30208.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/temperature/max30208.c b/drivers/iio/temperature/max30208.c
index 48be03852cd8..720469f9dc36 100644
--- a/drivers/iio/temperature/max30208.c
+++ b/drivers/iio/temperature/max30208.c
@@ -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 */
};