mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
[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>
This commit is contained in:
parent
d564baee29
commit
fb687d73fa
@ -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
|
by `__init_data'. Hose functions and structures can be removed after
|
||||||
kernel booting (or module loading) is completed.
|
kernel booting (or module loading) is completed.
|
||||||
|
|
||||||
|
|
||||||
Command function
|
Command function
|
||||||
================
|
================
|
||||||
|
|
||||||
A generic ioctl-like function call back is supported. You will seldom
|
A generic ioctl-like function call back is supported. You will seldom
|
||||||
need this. You may even set it to NULL.
|
need this, and its use is deprecated anyway, so newer design should not
|
||||||
|
use it. Set it to NULL.
|
||||||
/* No commands defined */
|
|
||||||
int foo_command(struct i2c_client *client, unsigned int cmd, void *arg)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Sending and receiving
|
Sending and receiving
|
||||||
|
Loading…
Reference in New Issue
Block a user