From: Jean Delvare Date: Sun, 18 Dec 2005 15:51:55 +0000 (+0100) Subject: [PATCH] i2c: update i2c_driver.command documentation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb687d73fa7685ffeed1a6b24fadb5f4db817783;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Greg Kroah-Hartman --- 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 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