Skip to content

Commit

Permalink
iio: adc: spmi-vadc: Changes to support different scaling
Browse files Browse the repository at this point in the history
Several ADC channels are supported in PMIC which can be used to
measure voltage, temperature, current etc. Different scaling can be
applied on the obtained voltage to report in physical units. Scaling
functionality can be different per channel. Add scaling support per
channel. Every channel present in adc has an unique conversion formula
for obtained voltage. Add support to report in Raw as well as in
processed format. Scaling is applied when processed read is requested
and is not applied when a Raw read is requested.

Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Rama Krishna Phani A authored and jic23 committed Dec 10, 2016
1 parent ba71704 commit 7c271ee
Showing 1 changed file with 327 additions and 108 deletions.

0 comments on commit 7c271ee

Please sign in to comment.