aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/i2c/upgrading-clients
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/i2c/upgrading-clients')
-rw-r--r--Documentation/i2c/upgrading-clients4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/i2c/upgrading-clients b/Documentation/i2c/upgrading-clients
index d6991625c407..8e5fbd88c7d1 100644
--- a/Documentation/i2c/upgrading-clients
+++ b/Documentation/i2c/upgrading-clients
@@ -196,8 +196,8 @@ static int example_probe(struct i2c_client *i2c_client,
196 196
197Update the detach method, by changing the name to _remove and 197Update the detach method, by changing the name to _remove and
198to delete the i2c_detach_client call. It is possible that you 198to delete the i2c_detach_client call. It is possible that you
199can also remove the ret variable as it is not not needed for 199can also remove the ret variable as it is not needed for any
200any of the core functions. 200of the core functions.
201 201
202- static int example_detach(struct i2c_client *client) 202- static int example_detach(struct i2c_client *client)
203+ static int example_remove(struct i2c_client *client) 203+ static int example_remove(struct i2c_client *client)