Re: [PATCH 4/6] iio: accel: bma220: use iio_debugfs_reg_access_regmap()

From: Petre Rodan

Date: Tue Nov 24 2026 - 02:43:07 EST



Hello!

On Tue, Nov 24, 2026 at 08:50:14AM +0200, Rupesh Majhi wrote:
> The debugfs callback only reads or writes the regmap of the parent
> device, which is what the core helper does.
>
> Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>
> ---
> drivers/iio/accel/bma220_core.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/drivers/iio/accel/bma220_core.c b/drivers/iio/accel/bma220_core.c
> index 23eff578158c..d2f21c0ab491 100644

passes all my unit tests (which do use debugfs regmap access) on both i2c and
spi sensors, thanks for the patch.

Tested-by: Petre Rodan <petre.rodan@xxxxxxxxxxxxxxx>

best regards,
peter

Attachment: signature.asc
Description: PGP signature