The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: "Michael Hennerich" <michael.hennerich@analog.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Ramona Gradinariu" <ramona.gradinariu@analog.com>,
	"Andrew Ijano" <andrew.ijano@gmail.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] iio: accel: adxl380: remove unused odr field
Date: Thu, 29 Jan 2026 16:24:46 +0000	[thread overview]
Message-ID: <20260129162446.39e7adf4@jic23-huawei> (raw)
In-Reply-To: <20260129141205.106285-2-antoniu.miclaus@analog.com>

On Thu, 29 Jan 2026 16:11:58 +0200
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> Remove unused odr field from adxl380_state struct.
> The field is declared but never accessed in the driver.
It is used in my tree...

I blindly applied this on assumption a build test was quicker than
checking if you were right :)

drivers/iio/accel/adxl380.c:271:8: error: no member named 'odr' in 'struct adxl380_state'
  271 |                         st->odr = ADXL380_ODR_VLP;
      |                         ~~  ^
drivers/iio/accel/adxl380.c:273:11: error: no member named 'odr' in 'struct adxl380_state'
  273 |                 if (st->odr == ADXL380_ODR_VLP)
      |                     ~~  ^
drivers/iio/accel/adxl380.c:440:42: error: no member named 'odr' in 'struct adxl380_state'
  440 |         *odr = st->chip_info->samp_freq_tbl[st->odr];
      |                                             ~~  ^
drivers/iio/accel/adxl380.c:518:6: error: no member named 'odr' in 'struct adxl380_state'
  518 |         st->odr = odr;
      |         ~~  ^
drivers/iio/accel/adxl380.c:1967:6: error: no member named 'odr' in 'struct adxl380_state'
 1967 |         st->odr = ADXL380_ODR_DSM;
      |         ~~  ^
5 errors generated.


> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
>  drivers/iio/accel/adxl380.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/accel/adxl380.c b/drivers/iio/accel/adxl380.c
> index aef5109c1ddd..4c584f6ec902 100644
> --- a/drivers/iio/accel/adxl380.c
> +++ b/drivers/iio/accel/adxl380.c
> @@ -206,7 +206,6 @@ struct adxl380_state {
>  	struct mutex lock;
>  	enum adxl380_axis tap_axis_en;
>  	u8 range;
> -	u8 odr;
>  	u8 fifo_set_size;
>  	u8 transf_buf[3];
>  	u16 watermark;


  reply	other threads:[~2026-01-29 16:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 14:11 [PATCH 1/3] iio: accel: adxl372: remove unused int2_bitmask field Antoniu Miclaus
2026-01-29 14:11 ` [PATCH 2/3] iio: accel: adxl380: remove unused odr field Antoniu Miclaus
2026-01-29 16:24   ` Jonathan Cameron [this message]
2026-01-29 16:38     ` Miclaus, Antoniu
2026-01-29 14:11 ` [PATCH 3/3] iio: accel: sca3000: remove unused last_timestamp field Antoniu Miclaus
2026-01-29 16:26   ` Jonathan Cameron
2026-01-29 14:28 ` [PATCH 1/3] iio: accel: adxl372: remove unused int2_bitmask field Andy Shevchenko
2026-01-29 14:37   ` Miclaus, Antoniu
2026-01-29 15:36     ` Andy Shevchenko
2026-01-29 16:25 ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260129162446.39e7adf4@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andrew.ijano@gmail.com \
    --cc=andy@kernel.org \
    --cc=antoniu.miclaus@analog.com \
    --cc=dlechner@baylibre.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.hennerich@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=ramona.gradinariu@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox