[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250910191644.3327042c@jic23-huawei>
Date: Wed, 10 Sep 2025 19:16:44 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Petre Rodan <petre.rodan@...dimension.ro>
Cc: David Lechner <dlechner@...libre.com>, Nuno Sá
<nuno.sa@...log.com>, Andy Shevchenko <andy@...nel.org>, Rob Herring
<robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 12/14] iio: accel: bma220: add LPF cut-off frequency
mapping
On Wed, 10 Sep 2025 10:57:17 +0300
Petre Rodan <petre.rodan@...dimension.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@...dimension.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,
> +};
Powered by blists - more mailing lists