Skip to content

Commit

Permalink
chemical: bme680: Convert to static the const lookup table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasileios Amoiridis authored and Jonathan Cameron committed Aug 3, 2024
1 parent 8cfb75d commit cc18b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/chemical/bme680_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ static u32 bme680_compensate_gas(struct bme680_data *data, u16 gas_res_adc,
u32 calc_gas_res;

/* Look up table for the possible gas range values */
const u32 lookupTable[16] = {2147483647u, 2147483647u,
static const u32 lookupTable[16] = {2147483647u, 2147483647u,
2147483647u, 2147483647u, 2147483647u,
2126008810u, 2147483647u, 2130303777u,
2147483647u, 2147483647u, 2143188679u,
Expand Down

0 comments on commit cc18b7f

Please sign in to comment.