projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b2f0a
)
[PATCH] I2C: Fix sgi_xfer return value
author
Jean Delvare
<khali@linux-fr.org>
Fri, 2 Sep 2005 19:28:00 +0000
(21:28 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 5 Sep 2005 16:26:54 +0000
(09:26 -0700)
The sgi_xfer function returns 0 on success instead of the number of
transfered messages as it is supposed to. This patch fixes that.
Let's just hope that no client chip driver was relying on this
misbehavior.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/algos/i2c-algo-sgi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/algos/i2c-algo-sgi.c
b/drivers/i2c/algos/i2c-algo-sgi.c
index 2f8df81317ffe710be943ed99c52f57833b8ad9c..932c4fa86c7374eb9cf667ab14a8d20cc94adcbf 100644
(file)
--- a/
drivers/i2c/algos/i2c-algo-sgi.c
+++ b/
drivers/i2c/algos/i2c-algo-sgi.c
@@
-149,7
+149,7
@@
static int sgi_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs,
err = i2c_write(adap, p->buf, p->len);
}
- return
err
;
+ return
(err < 0) ? err : i
;
}
static u32 sgi_func(struct i2c_adapter *adap)