From: Christophe JAILLET Date: Wed, 1 May 2024 09:19:41 +0000 (+0200) Subject: iio: temperature: max30208: Remove an unused field in struct max30208_data X-Git-Tag: v6.11-rc1~100^2~69^2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8107cd6f9b9279544f6ee917919b15d95c6385c;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/73f9f540ecdc7c10e833e6fc782324ae7d34ba9c.1714555144.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/temperature/max30208.c b/drivers/iio/temperature/max30208.c index 48be03852cd8d..720469f9dc36f 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 */ };