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.

iio: chemical: bme680: avoid using camel case

Rename camel case variable, as checkpatch.pl complains.

While at it, fix also the indentation of the array for readability.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241021195316.58911-4-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Vasileios Amoiridis and committed by
Jonathan Cameron
eea9a115 6ba3df71

+7 -7
+7 -7
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 - static const u32 lookupTable[16] = {2147483647u, 2147483647u, 442 - 2147483647u, 2147483647u, 2147483647u, 443 - 2126008810u, 2147483647u, 2130303777u, 444 - 2147483647u, 2147483647u, 2143188679u, 445 - 2136746228u, 2147483647u, 2126008810u, 446 - 2147483647u, 2147483647u}; 441 + static const u32 lookup_table[16] = { 442 + 2147483647u, 2147483647u, 2147483647u, 2147483647u, 443 + 2147483647u, 2126008810u, 2147483647u, 2130303777u, 444 + 2147483647u, 2147483647u, 2143188679u, 2136746228u, 445 + 2147483647u, 2126008810u, 2147483647u, 2147483647u 446 + }; 447 447 448 448 var1 = ((1340 + (5 * (s64) calib->range_sw_err)) * 449 - ((s64) lookupTable[gas_range])) >> 16; 449 + ((s64)lookup_table[gas_range])) >> 16; 450 450 var2 = ((gas_res_adc << 15) - 16777216) + var1; 451 451 var3 = ((125000 << (15 - gas_range)) * var1) >> 9; 452 452 var3 += (var2 >> 1);