From: Christophe JAILLET Date: Wed, 1 May 2024 12:55:17 +0000 (+0200) Subject: iio: light: gp2ap020a00f: Remove some unused field in struct gp2ap020a00f_data X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eef3681983e583bec87a114f4c53ed0dc8c77f1e;p=linux.git iio: light: gp2ap020a00f: Remove some unused field in struct gp2ap020a00f_data In "struct gp2ap020a00f_data", the 'pdata' field is unused. Moreover the "struct gp2ap020a00f_platform_data" is defined nowhere. Neither in this file, nor in a global .h file, so it is completely pointless. So, remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/57e9f29c7062d1bb846064bf6dbd7a8385a855e7.1714568099.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index 9f41724819b6..9a476697aa1f 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c @@ -237,7 +237,6 @@ enum gp2ap020a00f_thresh_val_id { }; struct gp2ap020a00f_data { - const struct gp2ap020a00f_platform_data *pdata; struct i2c_client *client; struct mutex lock; char *buffer;