diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-12-18 10:51:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:26 -0500 |
commit | fb687d73fa7685ffeed1a6b24fadb5f4db817783 (patch) | |
tree | 2e45a80aca89daa28ba27092175d860252a905f8 /Documentation/i2c/writing-clients | |
parent | d564baee2984098c73fd0e55bc5c8a890878ef3b (diff) |
[PATCH] i2c: update i2c_driver.command documentation
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@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/i2c/writing-clients')
-rw-r--r-- | Documentation/i2c/writing-clients | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients index 27c425ac70aa..3a057c8e5507 100644 --- a/Documentation/i2c/writing-clients +++ b/Documentation/i2c/writing-clients | |||
@@ -492,17 +492,13 @@ Note that some functions are marked by `__init', and some data structures | |||
492 | by `__init_data'. Hose functions and structures can be removed after | 492 | by `__init_data'. Hose functions and structures can be removed after |
493 | kernel booting (or module loading) is completed. | 493 | kernel booting (or module loading) is completed. |
494 | 494 | ||
495 | |||
495 | Command function | 496 | Command function |
496 | ================ | 497 | ================ |
497 | 498 | ||
498 | A generic ioctl-like function call back is supported. You will seldom | 499 | A generic ioctl-like function call back is supported. You will seldom |
499 | need this. You may even set it to NULL. | 500 | need this, and its use is deprecated anyway, so newer design should not |
500 | 501 | use it. Set it to NULL. | |
501 | /* No commands defined */ | ||
502 | int foo_command(struct i2c_client *client, unsigned int cmd, void *arg) | ||
503 | { | ||
504 | return 0; | ||
505 | } | ||
506 | 502 | ||
507 | 503 | ||
508 | Sending and receiving | 504 | Sending and receiving |