]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: rk808: Migrate to regulator core's simplified DT parsing code
authorWadim Egorov <w.egorov@phytec.de>
Tue, 10 May 2016 13:18:55 +0000 (15:18 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 13 May 2016 11:19:57 +0000 (12:19 +0100)
commita0e515285b3481a49301742b729b0f0fc2766c6a
tree1b720296c1df1f0c25290b8fa7d9c69ff6a84d9e
parent47b9b3424a4f63bfc0c456e25391f21a1f5574e5
regulator: rk808: Migrate to regulator core's simplified DT parsing code

A common simplified DT parsing code for regulators was introduced in
commit 266c23bcf51f ("regulator: of: Provide simplified DT parsing
method")

While at it also added RK8XX_DESC and RK8XX_DESC_SWITCH macros for the
regulator_desc struct initialization. This just makes the driver more compact.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rk808-regulator.c