Skip to content

Commit

Permalink
[PATCH] i2c: update i2c_driver.command documentation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Jan 6, 2006
1 parent d564bae commit fb687d7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Documentation/i2c/writing-clients
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,13 @@ Note that some functions are marked by `__init', and some data structures
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
Expand Down

0 comments on commit fb687d7

Please sign in to comment.