Skip to content

Commit 8e3a1bc

Browse files
committed
i2c: i801: Define FEATURES_ICH5 as an extension of FEATURES_ICH4
JIRA: https://issues.redhat.com/browse/RHEL-47426 commit ea4f329 Author: Heiner Kallweit <hkallweit1@gmail.com> Date: Fri Feb 2 08:01:41 2024 +0100 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 <hkallweit1@gmail.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent d7cf066 commit 8e3a1bc

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
@@ -972,11 +972,10 @@ static const struct i2c_algorithm smbus_algorithm = {
972972
.functionality = i801_func,
973973
};
974974

975-
#define FEATURES_ICH5 (FEATURE_BLOCK_PROC | FEATURE_I2C_BLOCK_READ | \
976-
FEATURE_IRQ | FEATURE_SMBUS_PEC | \
977-
FEATURE_BLOCK_BUFFER | FEATURE_HOST_NOTIFY)
978975
#define FEATURES_ICH4 (FEATURE_SMBUS_PEC | FEATURE_BLOCK_BUFFER | \
979976
FEATURE_HOST_NOTIFY)
977+
#define FEATURES_ICH5 (FEATURES_ICH4 | FEATURE_BLOCK_PROC | \
978+
FEATURE_I2C_BLOCK_READ | FEATURE_IRQ)
980979

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

0 commit comments

Comments
 (0)