summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-11-18 07:15:59 +0100
committerGuenter Roeck <linux@roeck-us.net>2024-12-14 08:00:44 -0800
commit4d2ffc42f78c429b7d42a635351a654c6f0b01b5 (patch)
tree00edd0bc64d77750777bae40eab5831ae57bc3a7 /tools/perf/scripts/python/export-to-postgresql.py
parent868dc3cd1105bd328be864bf2c409891438df44a (diff)
hwmon: (core) Avoid ifdef CONFIG_THERMAL in C source file
Using an #ifdef in a C source files to have different definitions of the same symbol makes the code harder to read and understand. Furthermore it makes it harder to test compilation of the different branches. Replace the ifdeffery with IS_ENABLED() which is just a normal conditional. The resulting binary is still the same as before as the compiler optimizes away all the unused code and definitions. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions