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

Skip to content
Commit 55c1371c authored by Marc Reilly's avatar Marc Reilly Committed by Mark Brown
Browse files

regmap: Use pad_bits and reg_bits when determining register format.



This change combines any padding bits into the register address bits when
determining register format handlers to use the next byte-divisible
register size.
A reg_shift member is introduced to the regmap struct to enable fixup
of the reg format.
Format handlers now take an extra parameter specifying the number of
bits to shift the value by.

Signed-off-by: default avatarMarc Reilly <marc@cpdesign.com.au>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 89a89b5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment