From 551652eec18a3aceb912f299e2f96d88ffb398ab Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 14 Oct 2007 12:35:10 +0000 Subject: [PATCH] i2c-nforce2: Declare PEC as supported. This is a backport from Linux 2.6. Kill dead code. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4953 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + kernel/busses/i2c-nforce2.c | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index 6a536dad..c3e9e357 100644 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,7 @@ SVN HEAD Man page sensord.8: Update Module fscher: Add missing read of control register (2.6 backport) Module i2c-i801: Add Tolapai support (2.6 backport) + Module i2c-nforce2: Declare PEC as supported (2.6 backport) Module i2c-piix4: Add ATI SB700 and SB800 support (2.6 backport) Module lm93: Fix an array overrun (2.6 backport) Program sensord: Fix f71805f fans diff --git a/kernel/busses/i2c-nforce2.c b/kernel/busses/i2c-nforce2.c index dc27d060..fde34905 100644 --- a/kernel/busses/i2c-nforce2.c +++ b/kernel/busses/i2c-nforce2.c @@ -134,10 +134,6 @@ static struct pci_driver nforce2_driver; static s32 nforce2_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); -/* -static int nforce2_block_transaction(union i2c_smbus_data *data, - char read_write, int i2c_enable); - */ static u32 nforce2_func(struct i2c_adapter *adapter); @@ -278,8 +274,8 @@ u32 nforce2_func(struct i2c_adapter *adapter) { /* other functionality might be possible, but is not tested */ return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | - I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA /* | - I2C_FUNC_SMBUS_BLOCK_DATA */; + I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | + I2C_FUNC_SMBUS_HWPEC_CALC; } static void nforce2_inc(struct i2c_adapter *adapter)