(mds) allow force and force_ddcmon parameters to bypass detection

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@923 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2000-11-02 02:56:37 +00:00
1 parent ab8a428bb6
commit 03e12c8b80
1 file changed
+10 -6
+10 -6
View File
@@ -185,13 +185,17 @@ int ddcmon_detect(struct i2c_adapter *adapter, int address,
/* Now, we do the remaining detection. */
/* Verify the first 8 locations 0x00FFFFFFFFFFFF00 */
for(i = 0; i < 8; i++) {
cs = i2c_smbus_read_byte_data(new_client, i);
if(i == 0 || i == 7) {
if(cs != 0)
/* Allow force and force_ddcmon arguments */
if(kind < 0)
{
for(i = 0; i < 8; i++) {
cs = i2c_smbus_read_byte_data(new_client, i);
if(i == 0 || i == 7) {
if(cs != 0)
goto ERROR1;
} else if(cs != 0xff)
goto ERROR1;
} else if(cs != 0xff)
goto ERROR1;
}
}
type_name = "ddcmon";