On sobota 25. srpna 2018 18:11:17 CEST, Andrew Lunn wrote:
Explicitely initializing all registers sounds reasonable. Should work
even on unusual i2c designs.
And it is not so hard to do. There are 30 writable registers on the 16
LED variant. But a lot of them are identical, one per LED.
I looked at regmap, and I am confused by its regmap_defaults and the notion
of a cache. I would like to just add some default values and let the regmap
infrastructure copy them into the device for me.
- Is this supported by the regmap core?
- Do I need to enable some regmap cache for this? (Probably a flat one.)
- Are there some side effects of the regmap cache?
I'm asking because the documentation in the .h files does not answer these
questions for me.
With kind regards,
Jan