aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-05-11 01:32:53 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-05-11 01:32:53 +0200
commit12f9fdbbccadde55fb6d8441ac2f9744f16f0372 (patch)
treee7e7164cb7db6734574d81b46718a009c260dbf6 /drivers/mfd
parentb782157bfd31a2c925cdff8eb383bb7edf3f2e8e (diff)
downloadkernel_goldelico_gta04-12f9fdbbccadde55fb6d8441ac2f9744f16f0372.zip
kernel_goldelico_gta04-12f9fdbbccadde55fb6d8441ac2f9744f16f0372.tar.gz
kernel_goldelico_gta04-12f9fdbbccadde55fb6d8441ac2f9744f16f0372.tar.bz2
twl4030-madc: Return raw values from twl4030_get_madc_conversion
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/twl4030-madc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c
index 4c583e4..d5b84da 100644
--- a/drivers/mfd/twl4030-madc.c
+++ b/drivers/mfd/twl4030-madc.c
@@ -615,9 +615,11 @@ int twl4030_get_madc_conversion(int channel_no)
req.method = TWL4030_MADC_SW2;
req.active = 0;
req.func_cb = NULL;
+ req.raw = 1;
ret = twl4030_madc_conversion(&req);
if (ret < 0)
return ret;
+
if (req.rbuf[channel_no] > 0)
temp = req.rbuf[channel_no];