From owner-svn-src-head@freebsd.org Sat Oct 10 00:12:05 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1ACFE9D1984; Sat, 10 Oct 2015 00:12:05 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAEEF307; Sat, 10 Oct 2015 00:12:04 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9A0C3li063320; Sat, 10 Oct 2015 00:12:03 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9A0C3an063319; Sat, 10 Oct 2015 00:12:03 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201510100012.t9A0C3an063319@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Sat, 10 Oct 2015 00:12:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289098 - head/sys/dev/iicbus X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 00:12:05 -0000 Author: ian Date: Sat Oct 10 00:12:03 2015 New Revision: 289098 URL: https://svnweb.freebsd.org/changeset/base/289098 Log: Fix more cases of iicbus-layer functions that must return IIC_Exxxx values. Modified: head/sys/dev/iicbus/iiconf.c Modified: head/sys/dev/iicbus/iiconf.c ============================================================================== --- head/sys/dev/iicbus/iiconf.c Fri Oct 9 23:58:19 2015 (r289097) +++ head/sys/dev/iicbus/iiconf.c Sat Oct 10 00:12:03 2015 (r289098) @@ -92,7 +92,7 @@ iicbus_poll(struct iicbus_softc *sc, int break; default: - return (EWOULDBLOCK); + return (IIC_EBUSBSY); } return (error); @@ -157,7 +157,7 @@ iicbus_release_bus(device_t bus, device_ if (sc->owner != dev) { IICBUS_UNLOCK(sc); - return (EACCES); + return (IIC_EBUSBSY); } /*