Maxime Chevallier e12ff28764
regmap: mmio: Allow passing an empty config->reg_stride
Regmap's stride is used for MMIO regmaps to check the correctness of
reg_width. However, it's acceptable to pass an empty config->reg_stride,
in that case the actual stride used is 1.

There are valid cases now to pass an empty stride, when using
down/upshifting of register address. In this case, the stride value
loses its sense, so ignore the reg_width when the stride isn't set.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com
Link: https://lore.kernel.org/r/20230511142735.316445-1-maxime.chevallier@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org
2023-05-12 10:28:19 +09:00
..
2023-04-27 11:53:57 -07:00
2023-01-22 12:56:55 +01:00
2023-03-23 13:21:24 +01:00
2023-04-27 11:53:57 -07:00
2021-07-21 11:53:42 +02:00
2021-06-15 17:14:36 +02:00
2021-06-15 17:14:36 +02:00