Skip to content

Commit

Permalink
regulator: tps65086: Update regulator driver for the TPS65086 PMIC
Browse files Browse the repository at this point in the history
Make changes to allow this driver to work with the updated TPS65086 core
driver and bindings.

Signed-off-by: Andrew F. Davis <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
glneo authored and broonie committed Dec 1, 2015
1 parent d2a2e72 commit 7f9354f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/regulator/tps65086-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
*/

#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/of_regulator.h>

#include <linux/mfd/tps65086.h>

Expand All @@ -31,6 +30,7 @@ enum tps65086_regulators { BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, LDOA1,
.desc = { \
.name = _name, \
.of_match = of_match_ptr(_of), \
.regulators_node = "regulators", \
.of_parse_cb = tps65086_of_parse_cb, \
.id = _id, \
.ops = &reg_ops, \
Expand All @@ -54,6 +54,7 @@ enum tps65086_regulators { BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, LDOA1,
.desc = { \
.name = _name, \
.of_match = of_match_ptr(_of), \
.regulators_node = "regulators", \
.of_parse_cb = tps65086_of_parse_cb, \
.id = _id, \
.ops = &switch_ops, \
Expand Down Expand Up @@ -213,8 +214,8 @@ static int tps65086_regulator_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, tps);

config.dev = &pdev->dev;
config.dev->of_node = tps->dev->of_node;
config.driver_data = tps;
config.of_node = pdev->dev.of_node;
config.regmap = tps->regmap;

for (i = 0; i < ARRAY_SIZE(regulators); i++) {
Expand Down

0 comments on commit 7f9354f

Please sign in to comment.