Re: [PATCH v2 12/14] iio: accel: bma220: add LPF cut-off frequency mapping

Jonathan Cameron
2025-09-10T18:16:54Z

On Wed, 10 Sep 2025 10:57:17 +0300
Petre Rodan <petre.rodan@subdimension.ro> wrote:

> Add mapping for the low pass filter cut-off frequency.
> Make valid values visible for both the cut-off frequency and the scale.
>
> Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
> ---
8 @@ static const struct iio_chan_spec bma220_channels[] = {
> IIO_CHAN_SOFT_TIMESTAMP(3),
> };
>
> +/*
> + * Available cut-off frequencies of the low pass filter in Hz.
> + */

Completely trivial, but stick to single line comments when it fits under 80 chars.

> +static const int bma220_lpf_3dB_freq_Hz_table[] = {
> + [BMA220_COF_1000Hz] = 1000,
> + [BMA220_COF_500Hz] = 500,
> + [BMA220_COF_250Hz] = 250,
> + [BMA220_COF_125Hz] = 125,
> + [BMA220_COF_64Hz] = 64,
> + [BMA220_COF_32Hz] = 32,
> +};