Commit b65d6212 authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman

iio: core: introduce IIO_CHAN_INFO_HARDWAREGAIN

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 67eedba3
...@@ -280,6 +280,13 @@ Description: ...@@ -280,6 +280,13 @@ Description:
If a discrete set of scale values are available, they If a discrete set of scale values are available, they
are listed in this attribute. are listed in this attribute.
What /sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain
KernelVersion: 2.6.35
Contact: linux-iio@vger.kernel.org
Description:
Hardware applied gain factor. If shared across all channels,
<type>_hardwaregain is used.
What: /sys/.../in_accel_filter_low_pass_3db_frequency What: /sys/.../in_accel_filter_low_pass_3db_frequency
What: /sys/.../in_magn_filter_low_pass_3db_frequency What: /sys/.../in_magn_filter_low_pass_3db_frequency
What: /sys/.../in_anglvel_filter_low_pass_3db_frequency What: /sys/.../in_anglvel_filter_low_pass_3db_frequency
......
...@@ -91,6 +91,7 @@ static const char * const iio_chan_info_postfix[] = { ...@@ -91,6 +91,7 @@ static const char * const iio_chan_info_postfix[] = {
[IIO_CHAN_INFO_SAMP_FREQ] = "sampling_frequency", [IIO_CHAN_INFO_SAMP_FREQ] = "sampling_frequency",
[IIO_CHAN_INFO_FREQUENCY] = "frequency", [IIO_CHAN_INFO_FREQUENCY] = "frequency",
[IIO_CHAN_INFO_PHASE] = "phase", [IIO_CHAN_INFO_PHASE] = "phase",
[IIO_CHAN_INFO_HARDWAREGAIN] = "hardwaregain",
}; };
const struct iio_chan_spec const struct iio_chan_spec
......
...@@ -34,6 +34,7 @@ enum iio_chan_info_enum { ...@@ -34,6 +34,7 @@ enum iio_chan_info_enum {
IIO_CHAN_INFO_SAMP_FREQ, IIO_CHAN_INFO_SAMP_FREQ,
IIO_CHAN_INFO_FREQUENCY, IIO_CHAN_INFO_FREQUENCY,
IIO_CHAN_INFO_PHASE, IIO_CHAN_INFO_PHASE,
IIO_CHAN_INFO_HARDWAREGAIN,
}; };
#define IIO_CHAN_INFO_SHARED_BIT(type) BIT(type*2) #define IIO_CHAN_INFO_SHARED_BIT(type) BIT(type*2)
...@@ -95,6 +96,10 @@ enum iio_chan_info_enum { ...@@ -95,6 +96,10 @@ enum iio_chan_info_enum {
IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_PHASE) IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_PHASE)
#define IIO_CHAN_INFO_PHASE_SHARED_BIT \ #define IIO_CHAN_INFO_PHASE_SHARED_BIT \
IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_PHASE) IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_PHASE)
#define IIO_CHAN_INFO_HARDWAREGAIN_SEPARATE_BIT \
IIO_CHAN_INFO_SEPARATE_BIT(IIO_CHAN_INFO_HARDWAREGAIN)
#define IIO_CHAN_INFO_HARDWAREGAIN_SHARED_BIT \
IIO_CHAN_INFO_SHARED_BIT(IIO_CHAN_INFO_HARDWAREGAIN)
enum iio_endian { enum iio_endian {
IIO_CPU, IIO_CPU,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment