Message ID | e884d53fed0d8322d8be1de2593d4f5f8975af9c.1674996464.git.mehdi.djait.k@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | iio: accel: kionix-kx022a: Minor fixes | expand |
On 1/29/23 15:37, Mehdi Djait wrote: > The g_range member of the driver data struct is not used and > should therefore be removed Well spotted, thanks. > > Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> > --- > drivers/iio/accel/kionix-kx022a.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-kx022a.c > index 1d3af42ec0e1..bb43cb0acce4 100644 > --- a/drivers/iio/accel/kionix-kx022a.c > +++ b/drivers/iio/accel/kionix-kx022a.c > @@ -162,7 +162,6 @@ struct kx022a_data { > int inc_reg; > int ien_reg; > > - unsigned int g_range; > unsigned int state; > unsigned int odr_ns; >
On Mon, 30 Jan 2023 10:17:00 +0200 Matti Vaittinen <mazziesaccount@gmail.com> wrote: > On 1/29/23 15:37, Mehdi Djait wrote: > > The g_range member of the driver data struct is not used and > > should therefore be removed > > Well spotted, thanks. > > > > > Signed-off-by: Mehdi Djait <mehdi.djait.k@gmail.com> > Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Applied > > > --- > > drivers/iio/accel/kionix-kx022a.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-kx022a.c > > index 1d3af42ec0e1..bb43cb0acce4 100644 > > --- a/drivers/iio/accel/kionix-kx022a.c > > +++ b/drivers/iio/accel/kionix-kx022a.c > > @@ -162,7 +162,6 @@ struct kx022a_data { > > int inc_reg; > > int ien_reg; > > > > - unsigned int g_range; > > unsigned int state; > > unsigned int odr_ns; > > >
diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-kx022a.c index 1d3af42ec0e1..bb43cb0acce4 100644 --- a/drivers/iio/accel/kionix-kx022a.c +++ b/drivers/iio/accel/kionix-kx022a.c @@ -162,7 +162,6 @@ struct kx022a_data { int inc_reg; int ien_reg; - unsigned int g_range; unsigned int state; unsigned int odr_ns;
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> --- drivers/iio/accel/kionix-kx022a.c | 1 - 1 file changed, 1 deletion(-)