diff options
| author | Vasileios Amoiridis <[email protected]> | 2024-07-26 01:18:18 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-08-03 10:13:44 +0100 |
| commit | cc18b7fe70482df79fbbd99a8abc52247493529a (patch) | |
| tree | 112622ea6b2cedff2de03427dcd9afe6cdf66ca3 /drivers | |
| parent | 8cfb75d78af303b3c4370f1a5ac10d5562caa4e6 (diff) | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/iio/chemical/bme680_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c index 74ac887d8d8e..5d2e750ca2b9 100644 --- a/drivers/iio/chemical/bme680_core.c +++ b/drivers/iio/chemical/bme680_core.c @@ -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, |