History

i2c: remove deprecated attach_adapter callback

There aren't any users left. Remove this callback from the 2.4 times. Phew, finally, that took years to reach...

Wolfram Sang committed 8 years ago

Commit 0c36dd31 parent 3e7bed52 files · +1 −16Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/i2c.h+0−6
@@ -231,7 +231,6 @@ enum i2c_alert_protocol { · 230 unmodified lines
231/**231/**
232 * struct i2c_driver - represent an I2C device driver232 * struct i2c_driver - represent an I2C device driver
233 * @class: What kind of i2c device we instantiate (for detect)233 * @class: What kind of i2c device we instantiate (for detect)
234 * @attach_adapter: Callback for bus addition (deprecated)
235 * @probe: Callback for device binding - soon to be deprecated234 * @probe: Callback for device binding - soon to be deprecated
236 * @probe_new: New callback for device binding235 * @probe_new: New callback for device binding
237 * @remove: Callback for device unbinding236 * @remove: Callback for device unbinding
@@ -268,11 +267,6 @@ enum i2c_alert_protocol { · 30 unmodified lines
268struct i2c_driver {267struct i2c_driver {
269 unsigned int class;268 unsigned int class;
270 269
271 /* Notifies the driver that a new bus has appeared. You should avoid
272 * using this, it will be removed in a near future.
273 */
274 int (*attach_adapter)(struct i2c_adapter *) __deprecated;
275
276 /* Standard driver model interfaces */270 /* Standard driver model interfaces */
277 int (*probe)(struct i2c_client *, const struct i2c_device_id *);271 int (*probe)(struct i2c_client *, const struct i2c_device_id *);
278 int (*remove)(struct i2c_client *);272 int (*remove)(struct i2c_client *);