(Kyösti) Cleanups

Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Kyosti Malkki committed 2003-01-21 20:01:27 +00:00
1 parent d2e650b473
commit 1cfe63804a
68 files changed
+1609 -879

No files matched your search

+33 -4
View File
@@ -18,10 +18,39 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef SENSORS_NSENSORS_H
#define SENSORS_NSENSORS_H
#ifndef LIB_SENSORS_H
#define LIB_SENSORS_H
#include <linux/i2c-proc.h>
/* In spite of current location in CVS, this file is intended
to be included from userland utilities only. --km */
/* From linux/i2c-proc.h */
/* Sysctl IDs */
#ifdef DEV_HWMON
#define DEV_SENSORS DEV_HWMON
#else /* ndef DEV_HWMOM */
#define DEV_SENSORS 2 /* The id of the lm_sensors directory within the
dev table */
#endif /* def DEV_HWMON */
/* The maximum length of the prefix */
#define SENSORS_PREFIX_MAX 20
#define SENSORS_CHIPS 1
struct i2c_chips_data {
int sysctl_id;
char name[SENSORS_PREFIX_MAX + 13];
};
/* This file should be automatically generated from the sysctl enumerations
found in chips/*.c. At release time, diff againts previous release to make
sure we maintain binary compatibility of userland utilities that include
this file. --km */
/* I think we should remove the chip prefix on entries below. --km */
#define LM78_SYSCTL_IN0 1000 /* Volts * 100 */
#define LM78_SYSCTL_IN1 1001
@@ -690,4 +719,4 @@
#define BMC_SYSCTL_ALARMS 5000
#endif /* def SENSORS_SENSORS_H */
#endif /* def LIB_SENSORS_H */