mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
Backport SMBus PEC support rewrite from Linux 2.6:
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to check for PEC support of i2c bus drivers on individual SMBus transactions, and i2c bus drivers are not supposed to advertise them. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3176 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f67127f5a7
commit
c12c82c13d
4 files changed
+24
-78
No files matched your search
@@ -91,7 +91,7 @@
|
||||
#define PCI_DEVICE_ID_INTEL_ICH7_17 0x27da
|
||||
#endif
|
||||
|
||||
#ifdef I2C_FUNC_SMBUS_BLOCK_DATA_PEC
|
||||
#ifdef I2C_CLIENT_PEC
|
||||
#define HAVE_PEC
|
||||
#endif
|
||||
|
||||
@@ -595,9 +595,7 @@ static u32 i801_func(struct i2c_adapter *adapter)
|
||||
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |
|
||||
I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
|
||||
#ifdef HAVE_PEC
|
||||
| (isich4 ? I2C_FUNC_SMBUS_BLOCK_DATA_PEC |
|
||||
I2C_FUNC_SMBUS_HWPEC_CALC
|
||||
: 0)
|
||||
| (isich4 ? I2C_FUNC_SMBUS_HWPEC_CALC : 0)
|
||||
#endif
|
||||
#if 0
|
||||
| (isich5 ? I2C_FUNC_SMBUS_READ_I2C_BLOCK
|
||||
|
||||
Reference in new issue
Block a user