iio: accel: kionix-kx022a: Remove the unused member g_range
authorMehdi Djait <mehdi.djait.k@gmail.com>
Sun, 29 Jan 2023 13:37:46 +0000 (14:37 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Mar 2023 12:18:27 +0000 (12:18 +0000)
The g_range member of the driver data struct is not used and
should therefore be removed.

Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/e884d53fed0d8322d8be1de2593d4f5f8975af9c.1674996464.git.mehdi.djait.k@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kionix-kx022a.c

index f866859855cddc9433a421829b023952808013c8..9f8c7631f09876e8175b1448b59d89ab969f5161 100644 (file)
@@ -162,7 +162,6 @@ struct kx022a_data {
        int inc_reg;
        int ien_reg;
 
-       unsigned int g_range;
        unsigned int state;
        unsigned int odr_ns;