Skip to contentSkip to conversation

i2c: update i2c_driver.command

PATCH New Jean Delvare 1 participant 1 message Dec 18, 2005 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 7/11 i2c: update i2c_driver.command

Content-Disposition: inline; filename=i2c-update-command-documentation.patch

Document i2c_driver.command as being deprecated, and don't suggest an empty implementation of this callback as it doesn't make any sense.

Signed-off-by Jean Delvare <khali at linux-fr.org>
---
 Documentation/i2c/writing-clients |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
Documentation/i2c/writing-clients +3 -7
@@ -492,17 +492,13 @@
 by `__init_data'.  Hose functions and structures can be removed after
 kernel booting (or module loading) is completed.
 
+
 Command function
 ========
 
 A generic ioctl-like function call back is supported. You will seldom
-need this. You may even set it to NULL.
-
-  /* No commands defined */
-  int foo_command(struct i2c_client *client, unsigned int cmd, void *arg)
-  {
-    return 0;
-  }
+need this, and its use is deprecated anyway, so newer design should not
+use it. Set it to NULL.
 
 
 Sending and receiving
Signature · 1 line
Jean Delvare