Re: [PATCH 3/3] iio: addac: ad74413r: correct comparator gpio getters mask usage
From: Andy Shevchenko
Date: Sun Jan 09 2022 - 07:14:49 EST
On Sun, Jan 9, 2022 at 2:13 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Fri, Jan 7, 2022 at 7:34 AM Cosmin Tanislav <demonsingur@xxxxxxxxx> wrote:
> > + bitmap_zero(bits, chip->ngpio);
> (At least this conditional can be replaced with __asign_bit() call,
> but I think refactoring the entire loop may reveal a better approach)
Switching to it makes bitmap_zero() redundant.
--
With Best Regards,
Andy Shevchenko