summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-05-01 23:26:30 +0200
committerJean Delvare <khali@hyperion.delvare>2007-05-01 23:26:30 +0200
commita1d9e6e49f4b473a6945a6b553f5070e8c793e0a (patch)
tree8a33252327dc09d580c73e40ba73a92f46b3044f /include
parent7b4fbc50fabb810523be522fe7ec5cc40f85c7a1 (diff)
downloadop-kernel-dev-a1d9e6e49f4b473a6945a6b553f5070e8c793e0a.zip
op-kernel-dev-a1d9e6e49f4b473a6945a6b553f5070e8c793e0a.tar.gz
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 <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 8dcccc0..6802c3a 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -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 *);
OpenPOWER on IntegriCloud