We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efabcb3 commit 7e17ce3Copy full SHA for 7e17ce3
drivers/iio/pressure/abp060mg.c
@@ -35,7 +35,7 @@ struct abp_config {
35
int max;
36
};
37
38
-static struct abp_config abp_config[] = {
+static const struct abp_config abp_config[] = {
39
/* mbar & kPa variants */
40
[ABP006KG] = { .min = 0, .max = 6000 },
41
[ABP010KG] = { .min = 0, .max = 10000 },
@@ -165,7 +165,7 @@ static const struct iio_info abp060mg_info = {
165
static void abp060mg_init_device(struct iio_dev *indio_dev, unsigned long id)
166
{
167
struct abp_state *state = iio_priv(indio_dev);
168
- struct abp_config *cfg = &abp_config[id];
+ const struct abp_config *cfg = &abp_config[id];
169
170
state->scale = cfg->max - cfg->min;
171
state->offset = -ABP060MG_MIN_COUNTS;
0 commit comments