OSDN Git Service

iio:ad7793: Add support for the ad7798 and ad7799
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:09 +0000 (12:57 +0000)
commit2edb769d246e6b549ba1c5e9b283bfd058584cbb
treeaef2271858fdbbec77bf46a71897f4bb22db61b4
parentf87f1a2375a51ef8c5048bfce42587dbea1ca627
iio:ad7793: Add support for the ad7798 and ad7799

The ad7798 and ad7799 are similar to the ad7792 and ad7793 but are missing some
features like the temperature sensor, being able to use an external clocksource
and a few other things. This patch adds a new 'flags' fields to the chip_info
struct which allows to specify which features a certain chip variant supports.
The setup code will then ignore any platform data fields which are related to
non supported features.

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