summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c/porting-clients
diff options
context:
space:
mode:
authorJean Delvare2005-10-17 23:16:25 +0200
committerGreg Kroah-Hartman2005-10-28 23:02:12 +0200
commit2445eb62e98250f1ec8cbc8cf7c4be9cfafe88e5 (patch)
treed378cbfddb05c37d09cf03c71f070b02aed7a9cc /Documentation/i2c/porting-clients
parent[PATCH] i2c: kzalloc cleanups, 2 of 2 (diff)
downloadkernel-qcow2-linux-2445eb62e98250f1ec8cbc8cf7c4be9cfafe88e5.tar.gz
kernel-qcow2-linux-2445eb62e98250f1ec8cbc8cf7c4be9cfafe88e5.tar.xz
kernel-qcow2-linux-2445eb62e98250f1ec8cbc8cf7c4be9cfafe88e5.zip
[PATCH] i2c: Documentation update
Update the i2c documentation: kzalloc should be used instead of kmalloc. I also fixed a couple other things nearby in writing-clients, as several past changes had never been reported there. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/i2c/porting-clients')
-rw-r--r--Documentation/i2c/porting-clients2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/i2c/porting-clients b/Documentation/i2c/porting-clients
index 4849dfd6961c..184fac2377aa 100644
--- a/Documentation/i2c/porting-clients
+++ b/Documentation/i2c/porting-clients
@@ -82,7 +82,7 @@ Technical changes:
exit and exit_free. For i2c+isa drivers, labels should be named
ERROR0, ERROR1 and ERROR2. Don't forget to properly set err before
jumping to error labels. By the way, labels should be left-aligned.
- Use memset to fill the client and data area with 0x00.
+ Use kzalloc instead of kmalloc.
Use i2c_set_clientdata to set the client data (as opposed to
a direct access to client->data).
Use strlcpy instead of strcpy to copy the client name.