--- zzzz-none-000/linux-2.6.39.4/include/linux/i2c.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/i2c.h 2021-11-10 13:23:10.000000000 +0000 @@ -362,6 +362,9 @@ int timeout; /* in jiffies */ int retries; +#ifdef CONFIG_GEN3_I2C + unsigned int mode; +#endif struct device dev; /* the adapter device */ int nr; @@ -410,6 +413,7 @@ #define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */ #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ #define I2C_CLASS_SPD (1<<7) /* SPD EEPROMs and similar */ +#define I2C_CLASS_ALL (UINT_MAX) /* all of the above */ /* Internal numbers to terminate lists */ #define I2C_CLIENT_END 0xfffeU