I think regmap be overkill for this driver. Here we need access to a small number of registers. Registers are extremely simple on the internal device. As a result, the software layer of regmap will only complicate the readability and understanding of the code. And also increase the size and time of code execution, and even complicate the perception.Slave device provide software layer for access to internal registersPlease convert this to regmap.There is no generic w1 handler, but you can provide custom
MAX17211/MAX17215 chip.
read/write functions.
Also it would be nice to have thisNo problems. Once this set of patches will be accepted in the mainline.
based on https://lkml.org/lkml/2017/3/16/604. Then everything
could go into the power-supply driver.