[PATCH] gpio: drop bitmap_complement() where feasible

Michal Simek michal.simek at amd.com
Fri Apr 17 01:14:46 PDT 2026



On 4/17/26 05:34, Yury Norov wrote:
> [Some people who received this message don't often get email from ynorov at nvidia.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> 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);
> 

s/data1t/data1/


Thanks,
Michal



More information about the linux-arm-kernel mailing list