diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2005-09-18 18:30:16 +0000 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2005-09-18 18:30:16 +0000 |
commit | 6504401cf84ca826b3634db095f54033e76909b8 (patch) | |
tree | f1178480eecca5ed5d1469778d262a74b66b9c1a /lib/data.h | |
parent | 2c5441a2dbc6b70f588b8d2a3d6291f47b902f93 (diff) | |
download | lm-sensors-git-6504401cf84ca826b3634db095f54033e76909b8.tar.gz |
(mmh)
This patch moves two macros from lib/proc.c to lib/data.h. The macros
pick up the "sensors_" prefix along the way. The motivation is the
same as the previous patch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3091 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/data.h')
-rw-r--r-- | lib/data.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -182,10 +182,18 @@ extern sensors_proc_chips_entry *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)) + extern sensors_bus *sensors_proc_bus; extern int sensors_proc_bus_count; extern int sensors_proc_bus_max; +#define sensors_add_proc_bus(el) sensors_add_array_el( \ + (el), &sensors_proc_bus, &sensors_proc_bus_count,\ + &sensors_proc_bus_max, sizeof(struct sensors_bus)) + extern sensors_chip_features sensors_chip_features_list[]; #endif /* def LIB_SENSORS_DATA_H */ |