aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2012-04-27 04:58:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-29 21:26:17 -0400
commita6b12855b58bff429f3961e2577b8bbbb48fe470 (patch)
tree0898c015521acee7f9c4b64e8eb080fffdb54f87 /drivers/iio
parente4e8d1ce81bad2c39cf738186ec559b0bebbbdde (diff)
iio: core: Introduce IIO_ALTVOLTAGE and appropriate channel info elements
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/industrialio-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index e8e280d64295..47a72473d0b5 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -63,6 +63,7 @@ static const char * const iio_chan_type_name_spec[] = {
63 [IIO_ANGL] = "angl", 63 [IIO_ANGL] = "angl",
64 [IIO_TIMESTAMP] = "timestamp", 64 [IIO_TIMESTAMP] = "timestamp",
65 [IIO_CAPACITANCE] = "capacitance", 65 [IIO_CAPACITANCE] = "capacitance",
66 [IIO_ALTVOLTAGE] = "altvoltage",
66}; 67};
67 68
68static const char * const iio_modifier_names[] = { 69static const char * const iio_modifier_names[] = {
@@ -88,6 +89,8 @@ static const char * const iio_chan_info_postfix[] = {
88 [IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY] 89 [IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY]
89 = "filter_low_pass_3db_frequency", 90 = "filter_low_pass_3db_frequency",
90 [IIO_CHAN_INFO_SAMP_FREQ] = "sampling_frequency", 91 [IIO_CHAN_INFO_SAMP_FREQ] = "sampling_frequency",
92 [IIO_CHAN_INFO_FREQUENCY] = "frequency",
93 [IIO_CHAN_INFO_PHASE] = "phase",
91}; 94};
92 95
93const struct iio_chan_spec 96const struct iio_chan_spec