i2c: i801: Define FEATURES_ICH5 as an extension of FEATURES_ICH4
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 2 Feb 2024 07:01:41 +0000 (08:01 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 8 Feb 2024 17:06:44 +0000 (18:06 +0100)
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>
drivers/i2c/busses/i2c-i801.c

index b9b850b..44ae632 100644 (file)
@@ -969,11 +969,10 @@ static const struct i2c_algorithm smbus_algorithm = {
        .functionality  = i801_func,
 };
 
-#define FEATURES_ICH5  (FEATURE_BLOCK_PROC | FEATURE_I2C_BLOCK_READ    | \
-                        FEATURE_IRQ | FEATURE_SMBUS_PEC                | \
-                        FEATURE_BLOCK_BUFFER | FEATURE_HOST_NOTIFY)
 #define FEATURES_ICH4  (FEATURE_SMBUS_PEC | FEATURE_BLOCK_BUFFER | \
                         FEATURE_HOST_NOTIFY)
+#define FEATURES_ICH5  (FEATURES_ICH4 | FEATURE_BLOCK_PROC | \
+                        FEATURE_I2C_BLOCK_READ | FEATURE_IRQ)
 
 static const struct pci_device_id i801_ids[] = {
        { PCI_DEVICE_DATA(INTEL, 82801AA_3,                     0)                               },