[PATCH] gpio: drop bitmap_complement() where feasible
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Fri Apr 17 00:33:20 PDT 2026
On Thu, Apr 16, 2026 at 11:34:38PM -0400, Yury Norov wrote:
> The gpio drivers reproduce the following pattern:
>
> bitmap_complement(tmp, data1, nbits);
> bitmap_and(dst, data2, tmp, nbits);
>
> This can be done in a single pass:
>
> bitmap_andnot(dst, data2, data1t, nbits);
Split on per-driver basis.
With this being done,
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list