return undef instead of 0 in vt1211 i2c detect. found by Khali.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2958 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2005-03-27 23:10:52 +00:00
1 parent d21508f62f
commit 7717ea57c6
1 file changed
+2 -2
+2 -2
View File
@@ -4694,8 +4694,8 @@ sub max6650_detect
sub vt1211_i2c_detect
{
my ($chip,$file,$addr) = @_;
return 0 unless (i2c_smbus_read_byte_data($file,0x48) & 0x7f) == $addr;
return 0 unless i2c_smbus_read_byte_data($file,0x3f) == 0xb0;
return unless (i2c_smbus_read_byte_data($file,0x48) & 0x7f) == $addr;
return unless i2c_smbus_read_byte_data($file,0x3f) == 0xb0;
return 2;
}