Module Name: src Committed By: jakllsch Date: Tue Sep 25 16:29:41 UTC 2018
Modified Files: src/sys/dev/ic: dwiic.c Log Message: return 0 on success of dwiic_i2c_acquire_bus(), not 1 (failure) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ic/dwiic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/dwiic.c diff -u src/sys/dev/ic/dwiic.c:1.1 src/sys/dev/ic/dwiic.c:1.2 --- src/sys/dev/ic/dwiic.c:1.1 Sun Dec 10 17:12:54 2017 +++ src/sys/dev/ic/dwiic.c Tue Sep 25 16:29:41 2018 @@ -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 @@ dwiic_i2c_acquire_bus(void *cookie, int return (0); mutex_enter(&sc->sc_i2c_lock); - return 1; + return 0; } void