summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKalle Komierowski <kalle.komierowski@gmail.com>2011-06-07 15:43:55 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:35 +0200
commit991054e0e7e3894f88b9d912649c3daac9f64ddf (patch)
treeb9e8279a0b484849729cc1e6923639d7241a0aab /include
parent54514061c53a2b8822a402a0ca65b832d937e516 (diff)
mfd: ab8500_gpadc: Raw ADC value converted twice
A bug made the raw ADC value converted to voltage entity twice. Renamed some gpadc function arguments to clarify use. ST-Ericsson ID: 344073 ST-Ericsson Linux next: Tested by ELINWAL ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I53465c2e65c001c23d13929b4bdb59700eb7cf18 Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24552 Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: John BECKETT <john.beckett@stericsson.com> Reviewed-by: QATEST
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/ab8500/gpadc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mfd/ab8500/gpadc.h b/include/linux/mfd/ab8500/gpadc.h
index 6688cbc8208..fa706c5a04a 100644
--- a/include/linux/mfd/ab8500/gpadc.h
+++ b/include/linux/mfd/ab8500/gpadc.h
@@ -27,9 +27,9 @@
struct ab8500_gpadc;
struct ab8500_gpadc *ab8500_gpadc_get(void);
-int ab8500_gpadc_convert(struct ab8500_gpadc *gpadc, u8 input);
-int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 input);
+int ab8500_gpadc_convert(struct ab8500_gpadc *gpadc, u8 channel);
+int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel);
int ab8500_gpadc_ad_to_voltage(struct ab8500_gpadc *gpadc,
- u8 input, int ad_value);
+ u8 channel, int ad_value);
#endif /* _AB8500_GPADC_H */