]> 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>
Thu, 6 Oct 2011 14:43:56 +0000 (16:43 +0200)
commit5cff4367f982c9c986515c25be8cc341df722c67
tree1da76dc99742073c5d16caa08329ee66d655bb48
parenta43f12de794b0e08f91645f8fa6f94dc3f0ad27e
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