i2c: Make remove callback return void
[linux-block.git] / Documentation / i2c / writing-clients.rst
index e3b126cf4a3bb5045c5e9b53ec707d52c978240c..c1b46844b0fbe2004e6037579410de2e6e69a368 100644 (file)
@@ -156,7 +156,7 @@ those devices, and a remove() method to unbind.
 ::
 
        static int foo_probe(struct i2c_client *client);
-       static int foo_remove(struct i2c_client *client);
+       static void foo_remove(struct i2c_client *client);
 
 Remember that the i2c_driver does not create those client handles.  The
 handle may be used during foo_probe().  If foo_probe() reports success