From: Lars-Peter Clausen Date: Thu, 9 Aug 2012 07:51:00 +0000 (+0100) Subject: staging:iio: Constify static iio_chan_spec arrays X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~901^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e4b9558bc696cc89de460e754d3fecb50b13cb;p=pandora-kernel.git staging:iio: Constify static iio_chan_spec arrays The per driver iio_chan_spec arrays are usually shared between multiple device instances. So a single device instance may not modify the iio_chan_spec array since this would also affect the other device instances. To make this restriction explicit mark the per driver iio_chan_spec arrays as const. Conversion was done automatically using the following coccinelle semantic patch: // @disable optional_qualifier@ identifier channels; @@ static +const struct iio_chan_spec channels[] = ...; // Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed