mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
Backport Vaio EEPROM detection bug from Linux 2.6.
http://archives.andrew.net.au/lm-sensors/msg30047.html git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2946 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ba1dcff82d
commit
5916574d33
1 file changed
+2
-1
@@ -213,10 +213,11 @@ int eeprom_detect(struct i2c_adapter *adapter, int address,
|
||||
if (i2c_smbus_read_byte_data(new_client, 0x80) == 'P'
|
||||
&& i2c_smbus_read_byte(new_client) == 'C'
|
||||
&& i2c_smbus_read_byte(new_client) == 'G'
|
||||
&& i2c_smbus_read_byte(new_client) == '-')
|
||||
&& i2c_smbus_read_byte(new_client) == '-') {
|
||||
printk(KERN_INFO "Vaio EEPROM detected, "
|
||||
"enabling password protection\n");
|
||||
data->nature = NATURE_VAIO;
|
||||
}
|
||||
}
|
||||
|
||||
/* Register a new directory entry with module sensors */
|
||||
|
||||
Reference in new issue
Block a user