Skip to content
Unverified Commit 3f58f6dc authored by Maxime Chevallier's avatar Maxime Chevallier Committed by Mark Brown
Browse files

regmap: add a helper to translate the register address



Register addresses passed to regmap operations can be offset with
regmap.reg_base and downshifted with regmap.reg_downshift.

Add a helper to apply both these operations and return the translated
address, that we can then use to perform the actual register operation
ont the underlying bus.

Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://lore.kernel.org/r/20230324093644.464704-2-maxime.chevallier@bootlin.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e8d018dd
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