提交 b3052718 编写于 作者: J Jean Delvare

i2c: Drop I2C_CLASS_CAM_DIGITAL

There are a number of drivers which set their i2c bus class to
I2C_CLASS_CAM_DIGITAL, however no chip driver actually checks for this
flag, so we might as well drop it now.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 994a075f
...@@ -569,7 +569,6 @@ static int cafe_smbus_setup(struct cafe_camera *cam) ...@@ -569,7 +569,6 @@ static int cafe_smbus_setup(struct cafe_camera *cam)
cafe_smbus_enable_irq(cam); cafe_smbus_enable_irq(cam);
adap->id = I2C_HW_SMBUS_CAFE; adap->id = I2C_HW_SMBUS_CAFE;
adap->class = I2C_CLASS_CAM_DIGITAL;
adap->owner = THIS_MODULE; adap->owner = THIS_MODULE;
adap->client_register = cafe_smbus_attach; adap->client_register = cafe_smbus_attach;
adap->client_unregister = cafe_smbus_detach; adap->client_unregister = cafe_smbus_detach;
......
...@@ -1347,7 +1347,6 @@ static struct i2c_driver ov7670_driver = { ...@@ -1347,7 +1347,6 @@ static struct i2c_driver ov7670_driver = {
.name = "ov7670", .name = "ov7670",
}, },
.id = I2C_DRIVERID_OV7670, .id = I2C_DRIVERID_OV7670,
.class = I2C_CLASS_CAM_DIGITAL,
.attach_adapter = ov7670_attach, .attach_adapter = ov7670_attach,
.detach_client = ov7670_detach, .detach_client = ov7670_detach,
.command = ov7670_command, .command = ov7670_command,
......
...@@ -405,7 +405,6 @@ static struct i2c_driver driver = { ...@@ -405,7 +405,6 @@ static struct i2c_driver driver = {
.name = "ovcamchip", .name = "ovcamchip",
}, },
.id = I2C_DRIVERID_OVCAMCHIP, .id = I2C_DRIVERID_OVCAMCHIP,
.class = I2C_CLASS_CAM_DIGITAL,
.attach_adapter = ovcamchip_attach, .attach_adapter = ovcamchip_attach,
.detach_client = ovcamchip_detach, .detach_client = ovcamchip_detach,
.command = ovcamchip_command, .command = ovcamchip_command,
......
...@@ -1553,7 +1553,6 @@ static int w9968cf_i2c_init(struct w9968cf_device* cam) ...@@ -1553,7 +1553,6 @@ static int w9968cf_i2c_init(struct w9968cf_device* cam)
static struct i2c_adapter adap = { static struct i2c_adapter adap = {
.id = I2C_HW_SMBUS_W9968CF, .id = I2C_HW_SMBUS_W9968CF,
.class = I2C_CLASS_CAM_DIGITAL,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.client_register = w9968cf_i2c_attach_inform, .client_register = w9968cf_i2c_attach_inform,
.client_unregister = w9968cf_i2c_detach_inform, .client_unregister = w9968cf_i2c_detach_inform,
......
...@@ -393,7 +393,6 @@ static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data) ...@@ -393,7 +393,6 @@ static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data)
#define I2C_CLASS_TV_ANALOG (1<<1) /* bttv + friends */ #define I2C_CLASS_TV_ANALOG (1<<1) /* bttv + friends */
#define I2C_CLASS_TV_DIGITAL (1<<2) /* dvb cards */ #define I2C_CLASS_TV_DIGITAL (1<<2) /* dvb cards */
#define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */ #define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */
#define I2C_CLASS_CAM_DIGITAL (1<<5) /* most webcams */
#define I2C_CLASS_SPD (1<<7) /* SPD EEPROMs and similar */ #define I2C_CLASS_SPD (1<<7) /* SPD EEPROMs and similar */
/* i2c_client_address_data is the struct for holding default client /* i2c_client_address_data is the struct for holding default client
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册