aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Palsson <johan.palsson@stericsson.com>2011-05-07 18:55:43 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 13:45:44 -0400
commited13941643a437cf48f24ed53bdae79457628105 (patch)
tree6cf2a7ba616a46aa9d411df52d065927782e6435
parentc9c9513fd08d1e0548003e86d70a211c2e456d49 (diff)
mfd: Correct the name and bitmask for ab8500-gpadc BTempPullUp
The bitmask for enabling the BatTemp pull-up was wrong and is corrected. The name is also changed to be inline with the AB8500 register description Signed-off-by: Johan Palsson <johan.palsson@stericsson.com> Reviewed-by: Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/ab8500-gpadc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c
index 82708c1f316d..f16afb234ff9 100644
--- a/drivers/mfd/ab8500-gpadc.c
+++ b/drivers/mfd/ab8500-gpadc.c
@@ -57,7 +57,7 @@
57#define SW_AVG_16 0x60 57#define SW_AVG_16 0x60
58#define ADC_SW_CONV 0x04 58#define ADC_SW_CONV 0x04
59#define EN_ICHAR 0x80 59#define EN_ICHAR 0x80
60#define BATTEMP_PULLUP 0x04 60#define BTEMP_PULL_UP 0x08
61#define EN_BUF 0x40 61#define EN_BUF 0x40
62#define DIS_ZERO 0x00 62#define DIS_ZERO 0x00
63#define GPADC_BUSY 0x01 63#define GPADC_BUSY 0x01
@@ -306,8 +306,8 @@ int ab8500_gpadc_convert(struct ab8500_gpadc *gpadc, u8 input)
306 ret = abx500_mask_and_set_register_interruptible( 306 ret = abx500_mask_and_set_register_interruptible(
307 gpadc->dev, 307 gpadc->dev,
308 AB8500_GPADC, AB8500_GPADC_CTRL1_REG, 308 AB8500_GPADC, AB8500_GPADC_CTRL1_REG,
309 EN_BUF | BATTEMP_PULLUP, 309 EN_BUF | BTEMP_PULL_UP,
310 EN_BUF | BATTEMP_PULLUP); 310 EN_BUF | BTEMP_PULL_UP);
311 311
312 /* 312 /*
313 * Delay might be needed for ABB8500 cut 3.0, if not, remove 313 * Delay might be needed for ABB8500 cut 3.0, if not, remove