From 5fe10beedab32c27612be495a9ac002b4af262af Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 23 Feb 2010 13:29:05 +0000 Subject: [PATCH] Increase MAX_SENSORS_PER_TYPE to 24. The old value of 20 isn't enough at least for the W83795G, which has up to 21 voltage inputs. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5826 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + lib/sysfs.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index caddf5d0..bae1f8f4 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ lm-sensors CHANGES file ----------------------- SVN HEAD + libsensors: Increase MAX_SENSORS_PER_TYPE to 24 sensors-detect: Give udev time to settle before accessing i2c nodes Add support for Intel PCH (SMBus) diff --git a/lib/sysfs.c b/lib/sysfs.c index 44cf81e2..3d235150 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -136,7 +136,7 @@ static int sysfs_foreach_busdev(const char *bus_type, char sensors_sysfs_mount[NAME_MAX]; -#define MAX_SENSORS_PER_TYPE 20 +#define MAX_SENSORS_PER_TYPE 24 #define MAX_SUBFEATURES 8 #define MAX_SENSOR_TYPES 6 /* Room for all 5 types (in, fan, temp, power, energy) with all their