mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
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:
1 parent
d21508f62f
commit
7717ea57c6
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user