regulator: max1586: add device-tree support
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 31 Aug 2014 19:10:51 +0000 (21:10 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2014 10:35:45 +0000 (11:35 +0100)
commit4e00517945bed110f1b8de580cce97626e9ef0b5
tree2e41f96205f21b06516db42f231298e7adcc6f71
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
regulator: max1586: add device-tree support

Add device-tree support to max1586.
The driver can still be used with the legacy platform data, or the new
device-tree way.

This work is heavily inspired by the device-tree support of its cousin
max8660 driver.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max1586.c
include/linux/regulator/max1586.h