mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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 <colin.i.king@gmail.com> Link: https://patch.msgid.link/20240722151738.572913-1-colin.i.king@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
eab35358aa
commit
1bba03b799
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user