[RESEND][PATCH] iio: simplify with regmap_set_bits(), regmap_clear_bits()

Crt Mori cmo at melexis.com
Wed Jun 12 01:33:40 PDT 2024


For mlx90632 part
Acked-by: Crt Mori <cmo at melexis.com>

Thanks for the update.

On Tue, 11 Jun 2024 at 18:52, Trevor Gamblin <tgamblin at baylibre.com> wrote:
>
> Simplify the way regmap is accessed in iio drivers.
>
> Instead of using regmap_update_bits() and passing the mask twice, use
> regmap_set_bits().
>
> Instead of using regmap_update_bits() and passing val = 0, use
> regmap_clear_bits().
>
> Suggested-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
> Signed-off-by: Trevor Gamblin <tgamblin at baylibre.com>
> ---
> CC list got suppressed on first submission, so resending. Sorry about
> that.
>



More information about the linux-amlogic mailing list