staging:iio: drop procesed_val element of chan_spec.
authorJonathan Cameron <jic23@kernel.org>
Sun, 15 Apr 2012 16:41:31 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 23:38:21 +0000 (16:38 -0700)
There is no longer any need for this as we have separate
info_mask elements for raw and processed value reads.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/cdc/ad7746.c
drivers/staging/iio/iio.h
drivers/staging/iio/impedance-analyzer/ad5933.c
drivers/staging/iio/industrialio-core.c
drivers/staging/iio/light/isl29018.c
drivers/staging/iio/light/isl29028.c
drivers/staging/iio/light/tsl2563.c

index 6c756056005d142131404491785683185e3d3181..750bf4b0385eaa895996313db55b70bd4eef14cb 100644 (file)
@@ -142,7 +142,6 @@ static const struct iio_chan_spec ad7746_channels[] = {
                .type = IIO_TEMP,
                .indexed = 1,
                .channel = 0,
-               .processed_val = IIO_PROCESSED,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT,
                .address = AD7746_REG_VT_DATA_HIGH << 8 |
                        AD7746_VTSETUP_VTMD_INT_TEMP,
@@ -151,7 +150,6 @@ static const struct iio_chan_spec ad7746_channels[] = {
                .type = IIO_TEMP,
                .indexed = 1,
                .channel = 1,
-               .processed_val = IIO_PROCESSED,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT,
                .address = AD7746_REG_VT_DATA_HIGH << 8 |
                        AD7746_VTSETUP_VTMD_EXT_TEMP,
index dda16028df131628765393198e08a2593cbf5280..a56276338343d36f089860db0bee738420bb1632 100644 (file)
  * Currently assumes nano seconds.
  */
 
-enum iio_data_type {
-       IIO_RAW,
-       IIO_PROCESSED,
-};
-
-/* Could add the raw attributes as well - allowing buffer only devices */
 enum iio_chan_info_enum {
        IIO_CHAN_INFO_RAW = 0,
        IIO_CHAN_INFO_PROCESSED,
@@ -146,8 +140,6 @@ struct iio_chan_spec_ext_info {
  *                     correspond to the first name that the channel is referred
  *                     to by in the datasheet (e.g. IND), or the nearest
  *                     possible compound name (e.g. IND-INC).
- * @processed_val:     Flag to specify the data access attribute should be
- *                     *_input rather than *_raw.
  * @modified:          Does a modifier apply to this channel. What these are
  *                     depends on the channel type.  Modifier is set in
  *                     channel2. Examples are IIO_MOD_X for axial sensors about
@@ -176,7 +168,6 @@ struct iio_chan_spec {
        const struct iio_chan_spec_ext_info *ext_info;
        const char              *extend_name;
        const char              *datasheet_name;
-       unsigned                processed_val:1;
        unsigned                modified:1;
        unsigned                indexed:1;
        unsigned                output:1;
index 9d5738aa427a60b277bc4f738c2734f8a3e02af6..93e5a716f9e125b719394a7c36e8b81799ba5fe0 100644 (file)
@@ -112,7 +112,6 @@ static struct iio_chan_spec ad5933_channels[] = {
        {
                .type = IIO_TEMP,
                .indexed = 1,
-               .processed_val = 1,
                .channel = 0,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT,
                .address = AD5933_REG_TEMP_DATA,
index 3ad04de3a87543a8211c89494692051a0c76fb8d..db55b815a24ede8d93ae67efb403bb3ba253e4c4 100644 (file)
@@ -42,11 +42,6 @@ EXPORT_SYMBOL(iio_bus_type);
 
 static struct dentry *iio_debugfs_dentry;
 
-static const char * const iio_data_type_name[] = {
-       [IIO_RAW] = "raw",
-       [IIO_PROCESSED] = "input",
-};
-
 static const char * const iio_direction[] = {
        [0] = "in",
        [1] = "out",
index 350f12c98ae5692aeb1e7d90de37704cc1026586..073e899e1754d05022e001737f002b5e595f1561 100644 (file)
@@ -420,7 +420,6 @@ static const struct iio_chan_spec isl29018_channels[] = {
                .type = IIO_LIGHT,
                .indexed = 1,
                .channel = 0,
-               .processed_val = IIO_PROCESSED,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT |
                IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT,
        }, {
index 11dc8a9e52afcca55b2e96b4c61c25a667e2f19e..4ac49aa344b9f6646ad6710860f9ba1cd2266449 100644 (file)
@@ -391,7 +391,6 @@ static const struct attribute_group isl29108_group = {
 static const struct iio_chan_spec isl29028_channels[] = {
        {
                .type = IIO_LIGHT,
-               .processed_val = 1,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT |
                IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
        }, {
index a334a889339d578ac040e35b728ac9d244c18d46..a1e5cbeb25acff06f32a199d285ef74eb2f0a786 100644 (file)
@@ -535,7 +535,6 @@ static const struct iio_chan_spec tsl2563_channels[] = {
        {
                .type = IIO_LIGHT,
                .indexed = 1,
-               .processed_val = 1,
                .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT,
                .channel = 0,
        }, {
This page took 0.03761 seconds and 5 git commands to generate.