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:
parent
7d1311b93e
commit
4e00517945
2 changed files with 80 additions and 3 deletions
|
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
struct max1586_subdev_data {
|
||||
int id;
|
||||
char *name;
|
||||
const char *name;
|
||||
struct regulator_init_data *platform_data;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue