iio: core: deconstify members of struct iio_chan_spec
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 20 Jul 2011 13:03:07 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:35:49 +0000 (13:35 -0700)
Allow dynamic allocation and population of channel spec.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio.h

index 16abb3749f70e13107516464e57b33535caad34d..753f769736ef3f5fe1f0101732f9a5a4d10a644f 100644 (file)
@@ -119,9 +119,9 @@ struct iio_chan_spec {
                u8      storagebits;
                u8      shift;
        } scan_type;
-       const long              info_mask;
-       const long              event_mask;
-       const char              *extend_name;
+       long                    info_mask;
+       long                    event_mask;
+       char                    *extend_name;
        unsigned                processed_val:1;
        unsigned                modified:1;
        unsigned                indexed:1;