summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2026-08-23 19:59:01 +0200
committerGuenter Roeck <linux@roeck-us.net>2026-09-09 18:16:28 -0700
commit286b175bb03893949f24621f356abd9d20368b0a (patch)
tree83c0ac0411e87b6c6ad7c5d25fdc49dab088f502 /scripts/basic/split-include.c
parent5a0aacaa2d593d7582ecfe289529b937b6dc5d3c (diff)
downloadlinux-286b175bb03893949f24621f356abd9d20368b0a.tar.gz
linux-286b175bb03893949f24621f356abd9d20368b0a.zip
hwmon: (chipcap2) fix channels in humidity alarm notifications
hwmon_notify_event() expects the channel number as its last argument, taken into account with the type parameter that it is a humidity sensor type. Given that this device only provides one humidity channel, 0 must be passed. The custom construct to enumerate the channels makes wrong assumptions by listing all types together (temperature and humidity). Remove the custom channel enumeration and pass the right channel to hwmon_notify_event() for hwmon_humidity_min_alarm and hwmon_humidity_max_alarm. Fixes: 3af350929e75 ("hwmon: Add support for Amphenol ChipCap 2") Cc: stable@vger.kernel.org Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://patch.msgid.link/20260823-chipcap2_locks-v2-1-6a26c8e9e2fc@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions