Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jean Delvare and committed by
Greg Kroah-Hartman
fb687d73 d564baee

+3 -7
+3 -7
Documentation/i2c/writing-clients
··· 492 492 by `__init_data'. Hose functions and structures can be removed after 493 493 kernel booting (or module loading) is completed. 494 494 495 + 495 496 Command function 496 497 ================ 497 498 498 499 A generic ioctl-like function call back is supported. You will seldom 499 - need this. You may even set it to NULL. 500 - 501 - /* No commands defined */ 502 - int foo_command(struct i2c_client *client, unsigned int cmd, void *arg) 503 - { 504 - return 0; 505 - } 500 + need this, and its use is deprecated anyway, so newer design should not 501 + use it. Set it to NULL. 506 502 507 503 508 504 Sending and receiving