]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (cros_ec) Move temperature channel params to a macro
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 18 Jan 2026 09:45:57 +0000 (10:45 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 31 Jan 2026 15:38:33 +0000 (07:38 -0800)
commit11c5802d28dd71fffb4df0720eafe840a953dc92
tree8abf82d5b8c78fdde6427a8758767a986ff3e653
parentbd7a455aee3b98aaa36f7d71c66c7a823a6131a0
hwmon: (cros_ec) Move temperature channel params to a macro

An upcoming change will add more channel parameters.
This leads to a lot of churn and very long lines.

Use a macro to encapsulate all of the shared values.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20260118-cros_ec-hwmon-pwm-v2-3-77eb1709b031@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/cros_ec_hwmon.c