Mattias Wallin
47c1697508
mfd: Align ab8500 with the abx500 interface
...
This patch makes the ab8500 mixed signal chip expose the same
interface for register access as the ab3100, ab3550 and ab5500 chip.
The ab8500_read() and ab8500_write() is removed and replaced with
abx500_get_register_interruptible() and
abx500_set_register_interruptible().
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com >
Acked-by: Linus Walleij <linus.walleij@stericsson.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com >
2010-10-29 00:29:19 +02:00
Axel Lin
49990e6efe
regulator: ab8500 - fix off-by-one value range checking for selector
...
selector is used as array index of info->supported_voltages
Thus the valid value range should be 0 .. info->voltages_len -1
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Mark Brown <broonie@openource.wolfsonmicro.com >
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk >
2010-09-05 11:15:52 +01:00
Axel Lin
d4876a3bc0
regulator: ab8500 - fix the logic to remove already registered regulators in error path
...
In current implementation, ab8500_regulator_info[0].regulator is not
unregistered if the error happen at i > 0.
This patch fixes the resource leak and also improves the readability.
Signed-off-by: Axel Lin <axel.lin@gmail.com >
Acked-by: Linus Walleij <linus.walleij@stericsson.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk >
2010-09-01 12:59:33 +01:00
Dan Carpenter
af54decd6a
regulator/ab8500: move dereference below the check for NULL
...
I moved the dereference of "ab8500" below the check for NULL.
Signed-off-by: Dan Carpenter <error27@gmail.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk >
2010-09-01 12:59:33 +01:00
Sundar R IYER
c789ca202c
regulator: add support for regulators on the ab8500 MFD
...
Hi Mark,
> I think that's everything.
Please find the updated patch set as below.
>From f4bf7eec4d210db5075c0bce4521d9be6bc76c8c Mon Sep 17 00:00:00 2001
From: Sundar R Iyer <sundar.iyer@stericsson.com >
Date: Sun, 6 Jun 2010 19:12:12 +0530
Subject: [PATCH v3 1/2] regulator: add support for regulators on the ab8500 MFD
Acked-by: Linus Walleij <linus.walleij@stericsson.com >
Acked-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com >
Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com >
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk >
2010-08-11 11:38:01 +01:00