Skip to content

Commit cc18b7f

Browse files
vamoiridjic23
authored andcommitted
chemical: bme680: Convert to static the const lookup table
By converting it to static, we ensure that this will be placed by the compiler in the read-only area. Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com> Link: https://patch.msgid.link/20240725231818.615530-1-vassilisamir@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 8cfb75d commit cc18b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/chemical/bme680_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static u32 bme680_compensate_gas(struct bme680_data *data, u16 gas_res_adc,
438438
u32 calc_gas_res;
439439

440440
/* Look up table for the possible gas range values */
441-
const u32 lookupTable[16] = {2147483647u, 2147483647u,
441+
static const u32 lookupTable[16] = {2147483647u, 2147483647u,
442442
2147483647u, 2147483647u, 2147483647u,
443443
2126008810u, 2147483647u, 2130303777u,
444444
2147483647u, 2147483647u, 2143188679u,

0 commit comments

Comments
 (0)