(mds) add support for gl523sm (adm1021 clone) to adm1021.c and sensors-detect.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@603 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 1999-10-20 02:00:43 +00:00
1 parent 129e08cc94
commit d5f72aebac
5 files changed
+34 -3

No files matched your search

+3 -1
View File
@@ -42,7 +42,7 @@ static unsigned int normal_isa[] = {SENSORS_ISA_END};
static unsigned int normal_isa_range[] = {SENSORS_ISA_END};
/* Insmod parameters */
SENSORS_INSMOD_5(adm1021,max1617,max1617a,thmc10,lm84);
SENSORS_INSMOD_6(adm1021,max1617,max1617a,thmc10,lm84,gl523sm);
/* adm1021 constants specified below */
@@ -250,6 +250,8 @@ static int adm1021_detect(struct i2c_adapter *adapter, int address,
kind = thmc10;
else if (i == 0x00)
kind = lm84;
else if (i == 0x23)
kind = gl523sm;
else if ((i== 0x4d) &&
(adm1021_read_value(new_client,ADM1021_REG_DEV_ID) == 0x01))
kind = max1617a;