aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2008-11-07 19:13:16 -0500
committerSamuel Ortiz <samuel@sortiz.org>2009-01-04 06:17:38 -0500
commit3fba19ec1ae5b460c73a7f32efed8d3b3300b246 (patch)
treee67545d3cfb1b622d79c21e6904f5a6003c6d17b /drivers/mfd
parent67488526349d043372d141c054f4dc6313780b3c (diff)
mfd: allow reading entire register banks on twl4030
Minor change to the TWL4030 utility interface: support reads of all 256 bytes in each register bank (vs just 255). This can help when debugging, but is otherwise a NOP. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/twl4030-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c
index dd843c4fbcc7..ef9a971e3ead 100644
--- a/drivers/mfd/twl4030-core.c
+++ b/drivers/mfd/twl4030-core.c
@@ -225,7 +225,7 @@ static struct twl4030mapping twl4030_map[TWL4030_MODULE_LAST + 1] = {
225 * 225 *
226 * Returns the result of operation - 0 is success 226 * Returns the result of operation - 0 is success
227 */ 227 */
228int twl4030_i2c_write(u8 mod_no, u8 *value, u8 reg, u8 num_bytes) 228int twl4030_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
229{ 229{
230 int ret; 230 int ret;
231 int sid; 231 int sid;
@@ -274,7 +274,7 @@ EXPORT_SYMBOL(twl4030_i2c_write);
274 * 274 *
275 * Returns result of operation - num_bytes is success else failure. 275 * Returns result of operation - num_bytes is success else failure.
276 */ 276 */
277int twl4030_i2c_read(u8 mod_no, u8 *value, u8 reg, u8 num_bytes) 277int twl4030_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
278{ 278{
279 int ret; 279 int ret;
280 u8 val; 280 u8 val;