iio: health/afe440x: Make gain settings a modifier for the stages
authorAndrew F. Davis <afd@ti.com>
Sun, 1 May 2016 20:37:00 +0000 (15:37 -0500)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 May 2016 10:11:30 +0000 (11:11 +0100)
commit1276187c5261217aa9cc23ec153e0e903181c16b
treea2daeddaf3ecdf4b76dd888ef2fdc29904e3a8ec
parentb36e8257641a043764c62240316610c81e36376c
iio: health/afe440x: Make gain settings a modifier for the stages

Currently the TIA gain settings are exported to userspace as sysfs
entries that do not clearly represent their internal relation to the
sampling stages. The gain settings are enabled on a per-stage basis,
this can be seen in figure 24 of the current AFE4404 datasheet.
These gain settings should therefore be tied to the channels that are
read during these stages. Make this change here.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio-health-afe440x
drivers/iio/health/afe4403.c
drivers/iio/health/afe4404.c