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

power: supply: max17042_battery: Do not use CONFIG_ prefix in regular C code

Using CONFIG_ prefix for macros is not a good practice.
Use CONFIG_ prefix in Kconfig only.

Signed-off-by: Przemyslaw Chwiala <przemekchwiala@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Link: https://lore.kernel.org/r/20230720123102.154699-1-przemekchwiala@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Przemyslaw Chwiala and committed by
Sebastian Reichel
c06a65ac 38940514

+3 -3
+3 -3
drivers/power/supply/max17042_battery.c
··· 36 36 #define STATUS_BR_BIT (1 << 15) 37 37 38 38 /* Interrupt mask bits */ 39 - #define CONFIG_ALRT_BIT_ENBL (1 << 2) 39 + #define CFG_ALRT_BIT_ENBL (1 << 2) 40 40 41 41 #define VFSOC0_LOCK 0x0000 42 42 #define VFSOC0_UNLOCK 0x0080 ··· 1116 1116 chip); 1117 1117 if (!ret) { 1118 1118 regmap_update_bits(chip->regmap, MAX17042_CONFIG, 1119 - CONFIG_ALRT_BIT_ENBL, 1120 - CONFIG_ALRT_BIT_ENBL); 1119 + CFG_ALRT_BIT_ENBL, 1120 + CFG_ALRT_BIT_ENBL); 1121 1121 max17042_set_soc_threshold(chip, 1); 1122 1122 } else { 1123 1123 client->irq = 0;