Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic return 0 on success of dwiic_i2c_acquire_bus(), n...
details: https://anonhg.NetBSD.org/src/rev/9755f463eb42
branches: trunk
changeset: 993705:9755f463eb42
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Sep 25 16:29:41 2018 +0000
description:
return 0 on success of dwiic_i2c_acquire_bus(), not 1 (failure)
diffstat:
sys/dev/ic/dwiic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a31c7cc1a746 -r 9755f463eb42 sys/dev/ic/dwiic.c
--- a/sys/dev/ic/dwiic.c Tue Sep 25 14:17:49 2018 +0000
+++ b/sys/dev/ic/dwiic.c Tue Sep 25 16:29:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwiic.c,v 1.1 2017/12/10 17:12:54 bouyer Exp $ */
+/* $NetBSD: dwiic.c,v 1.2 2018/09/25 16:29:41 jakllsch Exp $ */
/* $OpenBSD dwiic.c,v 1.24 2017/08/17 20:41:16 kettenis Exp $ */
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwiic.c,v 1.1 2017/12/10 17:12:54 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwiic.c,v 1.2 2018/09/25 16:29:41 jakllsch Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -276,7 +276,7 @@
return (0);
mutex_enter(&sc->sc_i2c_lock);
- return 1;
+ return 0;
}
void
Home |
Main Index |
Thread Index |
Old Index