diff mbox series

[2/2] iio: accel: kionix-kx022a: Remove the unused member g_range

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

Commit Message

Mehdi Djait Jan. 29, 2023, 1:37 p.m. UTC
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(-)

Comments

Matti Vaittinen Jan. 30, 2023, 8:17 a.m. UTC | #1
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;
>
Jonathan Cameron Feb. 5, 2023, 2:56 p.m. UTC | #2
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 mbox series

Patch

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;