]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Refactor ab8500 GPADC API, add raw access
authorKarl Komierowski <karl.komierowski@stericsson.com>
Wed, 10 Aug 2011 13:09:43 +0000 (15:09 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 21 Sep 2011 10:47:38 +0000 (12:47 +0200)
commit3af33e3d4c18ca80bef2e3eb9d84afeca75401e3
tree0e5f7b08c1c7e54e8149d64f7729fe0aaf9ad90a
parent00412744abeac3a386a0158bd886a2064d580909
mfd: Refactor ab8500 GPADC API, add raw access

Refactor the GPADC interface to avoid bugs in calling code:

- ab8500_gpadc_[convert|read_raw|ad_to_voltage] clarifies
  each functions use case, *convert wraps *read_raw, and we
  can access raw ADC values properly.
- Renamed gpadc function arguments from "input" to "channel" to
  clarify use, so we don't get confused again.

Signed-off-by: Kalle Komierowski <kalle.komierowski@stericsson.com>
Reviewed-by: Mattias Wallin <mattias.wallin@stericsson.com>
Reviewed-by: John Beckett <john.beckett@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-gpadc.c
include/linux/mfd/ab8500/gpadc.h