mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
(Phil) Added support for adm1023. Actually, the adm1021 driver worked
perfectly with the adm1023, but didn't take advantage of it's extra precision for the remote temp sensor. Now, if an adm1023 is detected, it will. For example, my adm1021 remote_temp looks like this: phil@penn phil]$ cat /proc/sys/dev/sensors/adm1021*/remote_temp 60 20 23 My 1023 looks like this: [root@penn lm_sensors2]# cat /proc/sys/dev/sensors/adm1023-i2c-2-2a/remote_temp 60.125 20.250 1.500 20.875 (Both from the same inserted driver) Notice the extra 3 digit precision (actually, it's in increments of 0.125). And, also notice the extra 'limit'. It's actually an offset register. Right now it's adding 1.5 degrees to the reading for the remote_temp. This same functionality could easily be done by editing /etc/sensors.conf, but Analog Devices decided to put it into the chip instead. :') Things to do: edit the default sensors.conf, and sensors-detect for this new chip. Oh, I also added SENSORS_INSMOD_7 into sensors.h. This was the first driver to need it, apparently. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@904 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c967638ca3
commit
6270f18139
2 files changed
+99
-5
No files matched your search
@@ -324,6 +324,29 @@ struct sensors_address_data {
|
||||
{NULL}}; \
|
||||
SENSORS_INSMOD
|
||||
|
||||
#define SENSORS_INSMOD_7(chip1,chip2,chip3,chip4,chip5,chip6,chip7) \
|
||||
enum chips { any_chip, chip1, chip2, chip3, chip4, chip5, chip6, chip7 }; \
|
||||
SENSORS_MODULE_PARM(force, \
|
||||
"List of adapter,address pairs to boldly assume " \
|
||||
"to be present"); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip1); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip2); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip3); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip4); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip5); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip6); \
|
||||
SENSORS_MODULE_PARM_FORCE(chip7); \
|
||||
static struct sensors_force_data forces[] = {{force,any_chip}, \
|
||||
{force_ ## chip1,chip1}, \
|
||||
{force_ ## chip2,chip2}, \
|
||||
{force_ ## chip3,chip3}, \
|
||||
{force_ ## chip4,chip4}, \
|
||||
{force_ ## chip5,chip5}, \
|
||||
{force_ ## chip6,chip6}, \
|
||||
{force_ ## chip7,chip7}, \
|
||||
{NULL}}; \
|
||||
SENSORS_INSMOD
|
||||
|
||||
typedef int sensors_found_addr_proc(struct i2c_adapter *adapter,
|
||||
int addr, unsigned short flags,
|
||||
int kind);
|
||||
|
||||
Reference in new issue
Block a user