summaryrefslogtreecommitdiff
path: root/drivers/power/pmic/pmic_max77686.c
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-20 18:07:46 (GMT)
committerSimon Glass <sjg@chromium.org>2015-05-15 00:49:38 (GMT)
commit52a3de5e123b3c36706b3904464a409b70e2d481 (patch)
treefe4daecccf8a33a6f5525a569c50a984543b7c29 /drivers/power/pmic/pmic_max77686.c
parentf37df0f877347808db1102f95839c47b92c9b3e0 (diff)
downloadu-boot-fsl-qoriq-52a3de5e123b3c36706b3904464a409b70e2d481.tar.xz
dm: pmic: add max77686 pmic driver
This is the implementation of driver model PMIC driver. The max77686 PMIC driver implements read/write operations and driver bind method - to bind its childs. This driver will try to bind the regulator devices by using it's child info array with regulator prefixes and driver names. This should succeed when compatible regulator driver is compiled. If no regulator driver found, then the pmic can still provide read/write operations, and can be used with PMIC function calls. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/pmic/pmic_max77686.c')
-rw-r--r--drivers/power/pmic/pmic_max77686.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pmic_max77686.c b/drivers/power/pmic/pmic_max77686.c
index 95b1a57..1ad810a 100644
--- a/drivers/power/pmic/pmic_max77686.c
+++ b/drivers/power/pmic/pmic_max77686.c
@@ -295,7 +295,7 @@ int pmic_init(unsigned char bus)
p->name = name;
p->interface = PMIC_I2C;
- p->number_of_regs = PMIC_NUM_OF_REGS;
+ p->number_of_regs = MAX77686_NUM_OF_REGS;
p->hw.i2c.tx_num = 1;
puts("Board PMIC init\n");