Maxime Chevallier 3f58f6dc4d
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: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://lore.kernel.org/r/20230324093644.464704-2-maxime.chevallier@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-24 19:02:16 +00:00
..
2022-12-19 12:33:32 -06:00
2023-01-22 12:56:55 +01:00
2023-02-24 12:58:55 -08:00
2021-07-21 11:53:42 +02:00
2021-12-30 13:54:42 +01:00
2021-06-15 17:14:36 +02:00
2021-06-15 17:14:36 +02:00