summaryrefslogtreecommitdiff
path: root/lib/data.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-06-26 11:33:09 +0000
committerJean Delvare <khali@linux-fr.org>2007-06-26 11:33:09 +0000
commit8138489a72f314166fb8606d3ed66b1a66fa62a0 (patch)
tree959039a6b18b04a52076a6b675dad558d5c4bfea /lib/data.h
parent6c7effca88f2c4b3f842965dac0aeabbc4f162c1 (diff)
downloadlm-sensors-git-8138489a72f314166fb8606d3ed66b1a66fa62a0.tar.gz
struct sensors_proc_chips_entry now has a single member, so we may
as well use this member directly for slightly more simple code. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4474 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/data.h')
-rw-r--r--lib/data.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/data.h b/lib/data.h
index 01b55e13..2fd0519a 100644
--- a/lib/data.h
+++ b/lib/data.h
@@ -118,11 +118,6 @@ typedef struct sensors_bus {
int lineno;
} sensors_bus;
-/* /proc/sys/dev/sensors/chips line representation */
-typedef struct sensors_proc_chips_entry {
- sensors_chip_name name;
-} sensors_proc_chips_entry;
-
/* Internal data about a single chip feature.
name is the string name used to refer to this feature (both in config
files and through user functions);
@@ -164,13 +159,13 @@ extern sensors_bus *sensors_config_busses;
extern int sensors_config_busses_count;
extern int sensors_config_busses_max;
-extern sensors_proc_chips_entry *sensors_proc_chips;
+extern sensors_chip_name *sensors_proc_chips;
extern int sensors_proc_chips_count;
extern int sensors_proc_chips_max;
#define sensors_add_proc_chips(el) sensors_add_array_el( \
(el), &sensors_proc_chips, &sensors_proc_chips_count,\
- &sensors_proc_chips_max, sizeof(struct sensors_proc_chips_entry))
+ &sensors_proc_chips_max, sizeof(struct sensors_chip_name))
extern sensors_bus *sensors_proc_bus;
extern int sensors_proc_bus_count;