File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ struct ad8366_state {
45
45
struct gpio_desc * reset_gpio ;
46
46
unsigned char ch [2 ];
47
47
enum ad8366_type type ;
48
- struct ad8366_info * info ;
48
+ const struct ad8366_info * info ;
49
49
/*
50
50
* DMA (thus cache coherency maintenance) may require the
51
51
* transfer buffers to live in their own cache lines.
52
52
*/
53
53
unsigned char data [2 ] __aligned (IIO_DMA_MINALIGN );
54
54
};
55
55
56
- static struct ad8366_info ad8366_infos [] = {
56
+ static const struct ad8366_info ad8366_infos [] = {
57
57
[ID_AD8366 ] = {
58
58
.gain_min = 4500 ,
59
59
.gain_max = 20500 ,
@@ -163,7 +163,7 @@ static int ad8366_write_raw(struct iio_dev *indio_dev,
163
163
long mask )
164
164
{
165
165
struct ad8366_state * st = iio_priv (indio_dev );
166
- struct ad8366_info * inf = st -> info ;
166
+ const struct ad8366_info * inf = st -> info ;
167
167
int code = 0 , gain ;
168
168
int ret ;
169
169
You can’t perform that action at this time.
0 commit comments