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:
Jean Delvare committed 2005-11-05 12:24:30 +00:00
1 parent f67127f5a7
commit c12c82c13d
4 files changed
+24 -78

No files matched your search

+1 -1
View File
@@ -185,7 +185,7 @@ int smbusarp_detect(struct i2c_adapter *adapter, int address,
if ((!i2c_check_functionality(adapter,
I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_HWPEC_CALC)) &&
(!i2c_check_functionality(adapter,
I2C_FUNC_SMBUS_BLOCK_DATA_PEC)))
I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_I2C)))
return(0);
if (!(data = kmalloc(sizeof(struct arp_data), GFP_KERNEL))) {