LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] i2c: viperboard: return message count on master_xfer success
@ 2018-05-09 19:47 Peter Rosin
2018-05-15 7:28 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Peter Rosin @ 2018-05-09 19:47 UTC (permalink / raw)
To: linux-kernel; +Cc: Peter Rosin, linux-i2c
Returning zero is wrong in this case.
Signed-off-by: Peter Rosin <peda@axentia.se>
---
drivers/i2c/busses/i2c-viperboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-viperboard.c b/drivers/i2c/busses/i2c-viperboard.c
index e4be86b3de9a..7235c7302bb7 100644
--- a/drivers/i2c/busses/i2c-viperboard.c
+++ b/drivers/i2c/busses/i2c-viperboard.c
@@ -337,7 +337,7 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
}
mutex_unlock(&vb->lock);
}
- return 0;
+ return num;
error:
mutex_unlock(&vb->lock);
return error;
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] i2c: viperboard: return message count on master_xfer success
2018-05-09 19:47 [PATCH] i2c: viperboard: return message count on master_xfer success Peter Rosin
@ 2018-05-15 7:28 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2018-05-15 7:28 UTC (permalink / raw)
To: Peter Rosin; +Cc: linux-kernel, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
On Wed, May 09, 2018 at 09:47:48PM +0200, Peter Rosin wrote:
> Returning zero is wrong in this case.
>
> Signed-off-by: Peter Rosin <peda@axentia.se>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-15 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-09 19:47 [PATCH] i2c: viperboard: return message count on master_xfer success Peter Rosin
2018-05-15 7:28 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).