diff options
| author | Colin Ian King <colin.i.king@gmail.com> | 2026-07-14 17:50:12 +0100 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-07-20 02:43:15 +0100 |
| commit | 1c286917a27aa72e4486eca79e0cdab8d67717b3 (patch) | |
| tree | 9e5cc4e77cc19d727020fcf1e9d718d94c36e76b | |
| parent | 091e7a67a908354a01914cc3000b9be97f989121 (diff) | |
| download | linux-1c286917a27aa72e4486eca79e0cdab8d67717b3.tar.gz linux-1c286917a27aa72e4486eca79e0cdab8d67717b3.zip | |
iio: adc: make read-only const array config static
Don't populate the read-only const array config on the stack at run
time, instead make it static.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
| -rw-r--r-- | drivers/iio/adc/88pm886-gpadc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/88pm886-gpadc.c b/drivers/iio/adc/88pm886-gpadc.c index ff9bc5f06c18..938ba43c2c35 100644 --- a/drivers/iio/adc/88pm886-gpadc.c +++ b/drivers/iio/adc/88pm886-gpadc.c @@ -279,7 +279,7 @@ static int pm886_gpadc_read_raw(struct iio_dev *iio, struct iio_chan_spec const static int pm886_gpadc_hw_enable(struct regmap *map) { - const u8 config[] = { + static const u8 config[] = { PM886_GPADC_CONFIG1_EN_ALL, PM886_GPADC_CONFIG2_EN_ALL, PM886_GPADC_GND_DET2_EN, |
