|
@@ -135,7 +135,8 @@ enum i2c_alert_protocol {
|
|
|
* struct i2c_driver - represent an I2C device driver
|
|
|
* @class: What kind of i2c device we instantiate (for detect)
|
|
|
* @attach_adapter: Callback for bus addition (deprecated)
|
|
|
- * @probe: Callback for device binding
|
|
|
+ * @probe: Callback for device binding - soon to be deprecated
|
|
|
+ * @probe_new: New callback for device binding
|
|
|
* @remove: Callback for device unbinding
|
|
|
* @shutdown: Callback for device shutdown
|
|
|
* @alert: Alert callback, for example for the SMBus alert protocol
|
|
@@ -178,6 +179,11 @@ struct i2c_driver {
|
|
|
int (*probe)(struct i2c_client *, const struct i2c_device_id *);
|
|
|
int (*remove)(struct i2c_client *);
|
|
|
|
|
|
+ /* New driver model interface to aid the seamless removal of the
|
|
|
+ * current probe()'s, more commonly unused than used second parameter.
|
|
|
+ */
|
|
|
+ int (*probe_new)(struct i2c_client *);
|
|
|
+
|
|
|
/* driver model interfaces that don't relate to enumeration */
|
|
|
void (*shutdown)(struct i2c_client *);
|
|
|
|