summaryrefslogtreecommitdiff
path: root/lib/sysfs.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2014-01-28 21:47:41 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2014-01-28 21:47:41 +0000
commit1cd2ea47a8275280972a992e9a2d5cfb911bdd11 (patch)
treecd99ae7fc552191fe816a9fc5d5bf7b6c9cd712c /lib/sysfs.c
parent50e6f2462a8938f5c952b97a050515931b9ef3bc (diff)
downloadlm-sensors-1cd2ea47a8275280972a992e9a2d5cfb911bdd11.tar.gz
libsensors: rename function sensors_compute_max
The new function name, sensors_compute_max_sf, better reflects what the function is actually doing. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6217 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/sysfs.c')
-rw-r--r--lib/sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index ad49a731..ce3c1e2c 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -382,7 +382,7 @@ sensors_subfeature_type sensors_subfeature_get_type(const char *name, int *nr)
return SENSORS_SUBFEATURE_UNKNOWN;
}
-static int sensors_compute_max(void)
+static int sensors_compute_max_sf(void)
{
int i, j, max, offset;
const struct subfeature_type_match *submatches;
@@ -443,7 +443,7 @@ static int sensors_read_dynamic_chip(sensors_chip_features *chip,
/* Dynamically figure out the max number of subfeatures */
if (!max_subfeatures)
- max_subfeatures = sensors_compute_max();
+ max_subfeatures = sensors_compute_max_sf();
/* We use a large sparse table at first to store all found
subfeatures, so that we can store them sorted at type and index