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 @@ -119,7 +119,7 @@ struct zopt2201_scale {
119
119
u8 res ; /* resolution register value */
120
120
};
121
121
122
- static struct zopt2201_scale zopt2201_scale_als [] = {
122
+ static const struct zopt2201_scale zopt2201_scale_als [] = {
123
123
{ 19 , 200000 , 0 , 5 },
124
124
{ 6 , 400000 , 1 , 5 },
125
125
{ 3 , 200000 , 2 , 5 },
@@ -144,7 +144,7 @@ static struct zopt2201_scale zopt2201_scale_als[] = {
144
144
{ 0 , 8333 , 4 , 0 },
145
145
};
146
146
147
- static struct zopt2201_scale zopt2201_scale_uvb [] = {
147
+ static const struct zopt2201_scale zopt2201_scale_uvb [] = {
148
148
{ 0 , 460800 , 0 , 5 },
149
149
{ 0 , 153600 , 1 , 5 },
150
150
{ 0 , 76800 , 2 , 5 },
@@ -347,7 +347,7 @@ static int zopt2201_set_gain(struct zopt2201_data *data, u8 gain)
347
347
}
348
348
349
349
static int zopt2201_write_scale_by_idx (struct zopt2201_data * data , int idx ,
350
- struct zopt2201_scale * zopt2201_scale_array )
350
+ const struct zopt2201_scale * zopt2201_scale_array )
351
351
{
352
352
int ret ;
353
353
You can’t perform that action at this time.
0 commit comments