From a9a48ea2a9e80a77931646dc129759bf171199fb Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 26 Aug 2007 08:26:51 +0000 Subject: [PATCH] Make sensors_match_chip internal to libsensors. It is no longer used by applications in practice. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4702 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/access.c | 2 +- lib/libsensors.3 | 7 ------- lib/sensors.h | 5 ----- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/access.c b/lib/access.c index 8327aa3e..64b75c53 100644 --- a/lib/access.c +++ b/lib/access.c @@ -34,7 +34,7 @@ static int sensors_eval_expr(const sensors_chip_name *name, /* Compare two chips name descriptions, to see whether they could match. Return 0 if it does not match, return 1 if it does match. */ -int sensors_match_chip(const sensors_chip_name *chip1, +static int sensors_match_chip(const sensors_chip_name *chip1, const sensors_chip_name *chip2) { if ((chip1->prefix != SENSORS_CHIP_NAME_PREFIX_ANY) && diff --git a/lib/libsensors.3 b/lib/libsensors.3 index ca2e4d73..ddd0881c 100644 --- a/lib/libsensors.3 +++ b/lib/libsensors.3 @@ -35,8 +35,6 @@ libsensors \- publicly accessible functions provided by the sensors library .B void sensors_cleanup(void); .B int sensors_parse_chip_name(const char *orig_name, \fBsensors_chip_name *res);\fP -.B int sensors_match_chip(const sensors_chip_name *chip1, - \fBconst sensors_chip_name *chip2);\fP .B const char *sensors_get_adapter_name(int bus_nr); .B char *sensors_get_label(const sensors_chip_name *name, int feature);\fP .B int sensors_get_value(const sensors_chip_name *name, int feature, @@ -68,11 +66,6 @@ Clean-up function: You can't access anything after this, until the next sensors_ .br Parse a chip name to the internal representation. Return 0 on succes, <0 on error. -\fBint sensors_match_chip(const sensors_chip_name *chip1, - const sensors_chip_name *chip2);\fP -.br -Compare two chips name descriptions, to see whether they could match. Return 0 if it does not match, return 1 if it does match. - .B const char *sensors_get_adapter_name(int bus_nr); .br This function returns the adapter name of a bus number, as used within the diff --git a/lib/sensors.h b/lib/sensors.h index f98bdd50..d1269e19 100644 --- a/lib/sensors.h +++ b/lib/sensors.h @@ -77,11 +77,6 @@ int sensors_parse_chip_name(const char *orig_name, sensors_chip_name *res); int sensors_snprintf_chip_name(char *str, size_t size, const sensors_chip_name *chip); -/* Compare two chips name descriptions, to see whether they could match. - Return 0 if it does not match, return 1 if it does match. */ -int sensors_match_chip(const sensors_chip_name *chip1, - const sensors_chip_name *chip2); - /* This function returns the adapter name of a bus, as used within the sensors_chip_name structure. If it could not be found, it returns NULL */