From 83bb616d023953a1f78fd5cf1ec81773bf10b896 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 3 Nov 2010 12:30:23 +0000 Subject: [PATCH] Library: Handle new chassis intrusion interface (w93792d and w83793). Untested, and I would hope that anyone using such recent kernels wouldn't stick to such an old user-space library, but the fix is cheap. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-2.10@5878 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + lib/chips.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index e5b1411b..3907455a 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ lm_sensors CHANGES file SVN-HEAD File lm_sensors.lsm: Delete, don't advertise a legacy branch File doc/developers/release_checklist: Skip mail to lsm + Library: Handle new chassis intrusion interface (w93792d and w83793) Module i2c-ali1563: Remove sparse warnings (2.6 backport) Module i2c-amd8111: Fix timeout handling (2.6 backport) Module i2c-piix4: ATI SB800 is not actually supported diff --git a/lib/chips.c b/lib/chips.c index 9a5fc023..9987797a 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -1827,7 +1827,8 @@ static sensors_chip_feature w83792d_features[] = { { SENSORS_W83792D_VRM, "vrm", NOMAP, NOMAP, RW }, W83792D_SYSCTL_VRM, VALUE(1), 1 }, */ { { SENSORS_W83792D_CHASSIS, "chassis", SENSORS_W83792D_CHASSIS, NOMAP, RW }, - W83792D_SYSCTL_CHASSIS, VALUE(1), 0 }, + W83792D_SYSCTL_CHASSIS, VALUE(1), 0, + "intrusion0_alarm", 0, "chassis" }, { { SENSORS_W83792D_FAN1_DIV, "fan1_div", SENSORS_W83792D_FAN1, NOMAP, RW }, W83792D_SYSCTL_FAN_DIV, VALUE(1), 0 }, { { SENSORS_W83792D_FAN2_DIV, "fan2_div", SENSORS_W83792D_FAN2, NOMAP, RW }, @@ -1924,7 +1925,8 @@ static sensors_chip_feature w83793_features[] = { { SENSORS_W83793_VRM, "vrm", NOMAP, NOMAP, RW }, NOSYSCTL, VALUE(1), 1 }, { { SENSORS_W83793_CHASSIS, "chassis", NOMAP, NOMAP, RW }, - NOSYSCTL, VALUE(1), 0 }, + NOSYSCTL, VALUE(1), 0, + "intrusion0_alarm", 0, "chassis" }, { { 0 }, 0 } };