]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: gp2ap020a00f: Remove some unused field in struct gp2ap020a00f_data
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 1 May 2024 12:55:17 +0000 (14:55 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2024 08:48:56 +0000 (09:48 +0100)
commiteef3681983e583bec87a114f4c53ed0dc8c77f1e
treeb40d47ab3be0b201fbe8db49484d121b7e5a4b74
parente1c313e04741ac045b1350e83d42cfc08db5e58f
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 <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/57e9f29c7062d1bb846064bf6dbd7a8385a855e7.1714568099.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/gp2ap020a00f.c