]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: mcp16502: adapt for get/set on other registers
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 13 Nov 2020 15:21:08 +0000 (17:21 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 13 Nov 2020 16:13:09 +0000 (16:13 +0000)
commit6996aeed89b1245b2242fa2e077c2af4adbea84b
treee71dd17f680d670148d4ebb4b6d1d06d1e287b3a
parentaae7b31c2c427ddcb67f3cbcc3946e00c6eaf8ac
regulator: mcp16502: adapt for get/set on other registers

MCP16502 have multiple registers for each regulator (as described
in enum mcp16502_reg). Adapt the code to be able to get/set all these
registers. This is necessary for the following commits.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1605280870-32432-5-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mcp16502.c