]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio:adc:ad799x: Make chan_spec const in ad799x_chip_config struct
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 6 Dec 2014 05:54:00 +0000 (05:54 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Jul 2014 20:56:49 +0000 (21:56 +0100)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad799x.c

index b8a811726d2f74052b08ba606f710892e368cf61..92401c958ea244ef971caf1ee2e128131855928c 100644 (file)
@@ -107,7 +107,7 @@ enum {
  * @info:              pointer to iio_info struct
  */
 struct ad799x_chip_config {
-       struct iio_chan_spec            channel[9];
+       const struct iio_chan_spec      channel[9];
        u16                             default_config;
        const struct iio_info           *info;
 };