Skip to content

Commit ea4f329

Browse files
hkallweitAndi Shyti
authored andcommitted
i2c: i801: Define FEATURES_ICH5 as an extension of FEATURES_ICH4
This change simplifies the code a little and makes clearer that the ICH5 feature set is an extension of the ICH4 feature set. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent d9a9657 commit ea4f329

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,11 +969,10 @@ static const struct i2c_algorithm smbus_algorithm = {
969969
.functionality = i801_func,
970970
};
971971

972-
#define FEATURES_ICH5 (FEATURE_BLOCK_PROC | FEATURE_I2C_BLOCK_READ | \
973-
FEATURE_IRQ | FEATURE_SMBUS_PEC | \
974-
FEATURE_BLOCK_BUFFER | FEATURE_HOST_NOTIFY)
975972
#define FEATURES_ICH4 (FEATURE_SMBUS_PEC | FEATURE_BLOCK_BUFFER | \
976973
FEATURE_HOST_NOTIFY)
974+
#define FEATURES_ICH5 (FEATURES_ICH4 | FEATURE_BLOCK_PROC | \
975+
FEATURE_I2C_BLOCK_READ | FEATURE_IRQ)
977976

978977
static const struct pci_device_id i801_ids[] = {
979978
{ PCI_DEVICE_DATA(INTEL, 82801AA_3, 0) },

0 commit comments

Comments
 (0)