patch-2.4.25 linux-2.4.25/Documentation/i2c/writing-clients
Next file: linux-2.4.25/Documentation/i386/zero-page.txt
Previous file: linux-2.4.25/Documentation/i2c/summary
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/Documentation/i2c/writing-clients
- Orig date:
2001-10-11 08:05:47.000000000 -0700
diff -urN linux-2.4.24/Documentation/i2c/writing-clients linux-2.4.25/Documentation/i2c/writing-clients
@@ -365,7 +365,7 @@
The detect client function is called by i2c_probe or i2c_detect.
The `kind' parameter contains 0 if this call is due to a `force'
-parameter, and 0 otherwise (for i2c_detect, it contains 0 if
+parameter, and -1 otherwise (for i2c_detect, it contains 0 if
this call is due to the generic `force' parameter, and the chip type
number if it is due to a specific `force' parameter).
@@ -448,9 +448,9 @@
/* Note that we reserve some space for foo_data too. If you don't
need it, remove it. We do it here to help to lessen memory
fragmentation. */
- if (! (new_client = kmalloc(sizeof(struct i2c_client)) +
+ if (! (new_client = kmalloc(sizeof(struct i2c_client) +
sizeof(struct foo_data),
- GFP_KERNEL)) {
+ GFP_KERNEL))) {
err = -ENOMEM;
goto ERROR0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)