Precursor to making value read / write attribute optional.
No processed values in resolvers at the moment.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
.channel = 0,
/* What other information is available? */
.info_mask =
.channel = 0,
/* What other information is available? */
.info_mask =
+ /*
+ * in_voltage0_raw
+ * Raw (unscaled no bias removal etc) measurement
+ * from the device.
+ */
+ IIO_CHAN_INFO_RAW_SEPARATE_BIT |
/*
* in_voltage0_offset
* Offset for userspace to apply prior to scale
/*
* in_voltage0_offset
* Offset for userspace to apply prior to scale
.channel = 1,
.channel2 = 2,
.info_mask =
.channel = 1,
.channel2 = 2,
.info_mask =
+ /*
+ * in_voltage1-voltage2_raw
+ * Raw (unscaled no bias removal etc) measurement
+ * from the device.
+ */
+ IIO_CHAN_INFO_RAW_SEPARATE_BIT |
/*
* in_voltage-voltage_scale
* Shared version of scale - shared by differential
/*
* in_voltage-voltage_scale
* Shared version of scale - shared by differential
.channel = 3,
.channel2 = 4,
.info_mask =
.channel = 3,
.channel2 = 4,
.info_mask =
+ IIO_CHAN_INFO_RAW_SEPARATE_BIT |
IIO_CHAN_INFO_SCALE_SHARED_BIT,
.scan_index = diffvoltage3m4,
.scan_type = {
IIO_CHAN_INFO_SCALE_SHARED_BIT,
.scan_index = diffvoltage3m4,
.scan_type = {
/* Channel 2 is use for modifiers */
.channel2 = IIO_MOD_X,
.info_mask =
/* Channel 2 is use for modifiers */
.channel2 = IIO_MOD_X,
.info_mask =
+ IIO_CHAN_INFO_RAW_SEPARATE_BIT |
/*
* Internal bias correction value. Applied
* by the hardware or driver prior to userspace
/*
* Internal bias correction value. Applied
* by the hardware or driver prior to userspace
/* DAC channel out_voltage0_raw */
{
.type = IIO_VOLTAGE,
/* DAC channel out_voltage0_raw */
{
.type = IIO_VOLTAGE,
+ .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT,
.output = 1,
.indexed = 1,
.channel = 0,
.output = 1,
.indexed = 1,
.channel = 0,
mutex_lock(&st->lock);
switch (mask) {
mutex_lock(&st->lock);
switch (mask) {
- case 0: /* magic value - channel value read */
+ case IIO_CHAN_INFO_RAW: /* magic value - channel value read */
switch (chan->type) {
case IIO_VOLTAGE:
if (chan->output) {
switch (chan->type) {
case IIO_VOLTAGE:
if (chan->output) {
struct iio_dummy_state *st = iio_priv(indio_dev);
switch (mask) {
struct iio_dummy_state *st = iio_priv(indio_dev);
switch (mask) {
+ case IIO_CHAN_INFO_RAW:
if (chan->output == 0)
return -EINVAL;
if (chan->output == 0)
return -EINVAL;