Commit 6a891a3111fe701517bb31c2204304724c7299c8

Authored by Jean Delvare
1 parent 202c4675c5

i2c: Drop unused i2c_driver.id field

Nobody is using i2c_driver.id any longer, so we can drop that field.

Signed-off-by: Jean Delvare <khali@linux-fr.org>

Showing 2 changed files with 0 additions and 13 deletions Side-by-side Diff

include/linux/i2c-id.h
... ... @@ -28,17 +28,6 @@
28 28 identify a legacy client. If you don't need them, just don't set them. */
29 29  
30 30 /*
31   - * ---- Driver types -----------------------------------------------------
32   - */
33   -
34   -#define I2C_DRIVERID_MSP3400 1
35   -#define I2C_DRIVERID_TUNER 2
36   -#define I2C_DRIVERID_TDA7432 27 /* Stereo sound processor */
37   -#define I2C_DRIVERID_TVAUDIO 29 /* Generic TV sound driver */
38   -#define I2C_DRIVERID_SAA711X 73 /* saa711x video encoders */
39   -#define I2C_DRIVERID_INFRARED 75 /* I2C InfraRed on Video boards */
40   -
41   -/*
42 31 * ---- Adapter types ----------------------------------------------------
43 32 */
44 33  
... ... @@ -98,7 +98,6 @@
98 98  
99 99 /**
100 100 * struct i2c_driver - represent an I2C device driver
101   - * @id: Unique driver ID (optional)
102 101 * @class: What kind of i2c device we instantiate (for detect)
103 102 * @attach_adapter: Callback for bus addition (for legacy drivers)
104 103 * @detach_adapter: Callback for bus removal (for legacy drivers)
... ... @@ -135,7 +134,6 @@
135 134 * not allowed.
136 135 */
137 136 struct i2c_driver {
138   - int id;
139 137 unsigned int class;
140 138  
141 139 /* Notifies the driver that a new bus has appeared or is about to be