Pass a subfeature structure to sensors_read_sysfs_attr() and

sensors_write_sysfs_attr(), rather than a subfeature number, so that
we do not have to lookup the feature number again.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4841 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-09-23 12:20:07 +00:00
1 parent ba6614624b
commit e7c345f4cf
3 files changed
+10 -14

No files matched your search

+4 -2
View File
@@ -29,11 +29,13 @@ int sensors_read_sysfs_chips(void);
int sensors_read_sysfs_bus(void);
/* Read a value out of a sysfs attribute file */
int sensors_read_sysfs_attr(const sensors_chip_name *name, int subfeat_nr,
int sensors_read_sysfs_attr(const sensors_chip_name *name,
const sensors_subfeature *subfeature,
double *value);
/* Write a value to a sysfs attribute file */
int sensors_write_sysfs_attr(const sensors_chip_name *name, int subfeat_nr,
int sensors_write_sysfs_attr(const sensors_chip_name *name,
const sensors_subfeature *subfeature,
double value);
#endif /* !SENSORS_LIB_SYSFS_H */