Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vasileios Amoiridis and committed by
Jonathan Cameron
cc18b7fe 8cfb75d7

+1 -1
+1 -1
drivers/iio/chemical/bme680_core.c
··· 438 438 u32 calc_gas_res; 439 439 440 440 /* Look up table for the possible gas range values */ 441 - const u32 lookupTable[16] = {2147483647u, 2147483647u, 441 + static const u32 lookupTable[16] = {2147483647u, 2147483647u, 442 442 2147483647u, 2147483647u, 2147483647u, 443 443 2126008810u, 2147483647u, 2130303777u, 444 444 2147483647u, 2147483647u, 2143188679u,