Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fcac0233 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown
Browse files

regmap: use IS_ALIGNED instead of % to improve the performance



The stride value should always equal to 2^n, so we can use bit
rotation instead of % to improve the performance.

Signed-off-by: default avatarXiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a6baa3de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment