Jan Dakinevich 0ec74ad3c1
regmap: rework ->max_register handling
When regmap consists of single register, 'regmap' subsystem is unable to
understand whether ->max_register is set or not, because in both cases it
is equal to zero. It leads to that the logic based on value of
->max_register doesn't work. For example using of REGCACHE_FLAT fails.

This patch introduces an extra parameter to regmap config, indicating
that zero value in ->max_register is authentic.

Signed-off-by: Jan Dakinevich <jan.dakinevich@salutedevices.com>
Link: https://lore.kernel.org/r/20240126200836.1829995-1-jan.dakinevich@salutedevices.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-05 14:32:35 +00:00
..
2024-01-18 17:25:39 -08:00
2024-01-18 09:48:40 -08:00
2024-01-18 09:48:40 -08:00
2024-01-18 16:22:43 -08:00
2024-01-18 09:48:40 -08:00
2021-06-15 17:14:36 +02:00
2021-06-15 17:14:36 +02:00