]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging:iio:ad7793: Rework platform data
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 21 Nov 2012 16:27:00 +0000 (16:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Nov 2012 12:57:07 +0000 (12:57 +0000)
commitd21f30c99e7c46cceb19f45e378a8d6a0a707428
treef48da2cfe6e897cb6d748f546183e2eadcbeff03
parentfe2e0d5228aa170fa725c2cb02cf423838c30bb3
staging:iio:ad7793: Rework platform data

Currently the platform data for the ad7793 consist just out of the raw default
register settings. This has some downsides, for one we actually don't want to
make all bits configurable and secondly not all register settings are actually
valid. This patch exposes all the options which should be configurable via
platform data as induvidual platform data struct fields. This also allows us to
document the different settings via proper kernel doc.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7793.c
drivers/staging/iio/adc/ad7793.h