diff options
author | Colin Ian King <[email protected]> | 2024-07-22 16:17:38 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-08-03 10:13:41 +0100 |
commit | 1bba03b799d620cb7ed6bd10a8a8f33ccf4e6853 (patch) | |
tree | 59b6d8c28f545c8e5d4e8f7b1e684464c3b40914 | |
parent | eab35358aae705b779a7c8b405474d1290175196 (diff) |
iio: pressure: bmp280-core: Make read-only const array conversion_time_max static
Don't populate the read-only array conversion_time_max on the stack at
run time, instead make it static.
Signed-off-by: Colin Ian King <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r-- | drivers/iio/pressure/bmp280-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c index 3deaa57bb3f5..da379230c837 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -2265,7 +2265,7 @@ EXPORT_SYMBOL_NS(bmp580_chip_info, IIO_BMP280); static int bmp180_wait_for_eoc(struct bmp280_data *data, u8 ctrl_meas) { - const int conversion_time_max[] = { 4500, 7500, 13500, 25500 }; + static const int conversion_time_max[] = { 4500, 7500, 13500, 25500 }; unsigned int delay_us; unsigned int ctrl; int ret; |