All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH 2/3] libsensors4: Make sensors_match_chip()
Date: Sat, 25 Aug 2007 13:07:46 +0000	[thread overview]
Message-ID: <20070825150746.5ca3f95e@hyperion.delvare> (raw)

Make sensors_match_chip internal to libsensors. It is no longer used by
applications in practice.

---
 lib/access.c     |    2 +-
 lib/libsensors.3 |    7 -------
 lib/sensors.h    |    5 -----
 3 files changed, 1 insertion(+), 13 deletions(-)

--- lm-sensors-3.orig/lib/access.c	2007-08-19 20:34:35.000000000 +0200
+++ lm-sensors-3/lib/access.c	2007-08-19 20:47:49.000000000 +0200
@@ -34,7 +34,7 @@ static int sensors_eval_expr(const senso
 
 /* 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) &&
--- lm-sensors-3.orig/lib/libsensors.3	2007-08-19 20:37:13.000000000 +0200
+++ lm-sensors-3/lib/libsensors.3	2007-08-19 20:48:06.000000000 +0200
@@ -35,8 +35,6 @@ libsensors \- publicly accessible functi
 .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 anyt
 .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
--- lm-sensors-3.orig/lib/sensors.h	2007-08-19 20:37:29.000000000 +0200
+++ lm-sensors-3/lib/sensors.h	2007-08-19 20:48:14.000000000 +0200
@@ -77,11 +77,6 @@ int sensors_parse_chip_name(const char *
 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 */


-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

             reply	other threads:[~2007-08-25 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-25 13:07 Jean Delvare [this message]
2007-08-25 17:20 ` [lm-sensors] [PATCH 2/3] libsensors4: Make sensors_match_chip() Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070825150746.5ca3f95e@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.