mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
i2c: i2c stack can remove()
More update for new style driver support: add a remove() method, and use it in the relevant code paths. Again, nothing will use this yet since there's nothing to create devices feeding this infrastructure. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
7b4fbc50fa
commit
a1d9e6e49f
2 changed files with 62 additions and 4 deletions
|
|
@ -130,6 +130,7 @@ struct i2c_driver {
|
|||
* it's done by infrastructure. (NEW STYLE DRIVERS ONLY)
|
||||
*/
|
||||
int (*probe)(struct i2c_client *);
|
||||
int (*remove)(struct i2c_client *);
|
||||
|
||||
/* driver model interfaces that don't relate to enumeration */
|
||||
void (*shutdown)(struct i2c_client *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue