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>
This commit is contained in:
Robert Jarzmik 2014-08-31 21:10:51 +02:00 committed by Mark Brown
parent 7d1311b93e
commit 4e00517945
2 changed files with 80 additions and 3 deletions

View file

@ -40,7 +40,7 @@
*/
struct max1586_subdev_data {
int id;
char *name;
const char *name;
struct regulator_init_data *platform_data;
};