Re: [RFC PATCH 2/2] iio: accel: msa311: use regmap_reg_field_* functions

From: Victor Chernyakin

Date: Fri Nov 13 2026 - 05:20:50 EST


> > Simplify the driver by using the new regmap_reg_field_* functions.
> > regmap_reg_field_FOO is equivalent to regmap_field_FOO, but takes
> > a reg_field directly instead of a regmap_field.
>
> I have just proposed REG_FIELD_GENMASK() macro, this change may rely on it
> 20261105103533.1426533-1-andriy.shevchenko@xxxxxxxxxxxxxxx if it comes through.

Now used in v2.