mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Fix byte writes used by eeprom.c. Similar to a recent fix made
to i2c-nforce2.c. Patch by Hans-Frieder Vogt <hfvogt@arcor.de>. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2127 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
24c728587e
commit
0247cfa944
1 file changed
+1
-1
@@ -198,7 +198,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
|
||||
|
||||
case I2C_SMBUS_BYTE:
|
||||
if (read_write == I2C_SMBUS_WRITE)
|
||||
amd_ec_write(smbus, AMD_SMB_DATA, data->byte);
|
||||
amd_ec_write(smbus, AMD_SMB_CMD, command);
|
||||
protocol |= AMD_SMB_PRTCL_BYTE;
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user