media: ddbridge: Remove unused class-based I2C autoprobing code
Subsystems (3)
PATCH 1/1 media: ddbridge: Remove unused class-based I2C autoprobing code
The I2C_CLASS_TV_xxx constants don't exist in kernel code, seems like this was copied from out-of-tree code. The supported I2C_CLASS_xxx constants reside in include/linux/i2c.h.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/media/pci/ddbridge/ddbridge-i2c.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/media/pci/ddbridge/ddbridge-i2c.c +0 -7
@@ -170,13 +170,6 @@ static int ddb_i2c_add(struct ddb *dev, struct ddb_i2c *i2c, adap = &i2c->adap;i2c_set_adapdata (adap, i2c); -#ifdef I2C_ADAP_CLASS_TV_DIGITAL - adap->class =I2C_ADAP_CLASS_TV_DIGITAL |I2C_CLASS_TV_ANALOG ; -#else -#ifdef I2C_CLASS_TV_ANALOG - adap->class =I2C_CLASS_TV_ANALOG ; -#endif -#endif snprintf (adap->name,I2C_NAME_SIZE ,"ddbridge_%02x.%x.%x" , dev->nr, i2c->link, i); adap->algo = &ddb_i2c_algo;
Signature · 1 line
2.43.0
Quoted 5 lines · Heiner Kallweit
The
I2C_CLASS_TV_xxxconstants don't exist in kernel code, seems like this was copied from out-of-tree code. The supportedI2C_CLASS_xxxconstants reside ininclude/linux/i2c.h.Signed-off-by Heiner Kallweit <[email protected]>
Reviewed-by Wolfram Sang <[email protected]>