From nobody Sat Oct 26 02:35:11 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xb3f81qvmz5bQPr; Sat, 26 Oct 2024 02:35:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xb3f80bVmz4RvV; Sat, 26 Oct 2024 02:35:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729910112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=llnG6oPFA/3GaoWquVB0QQeLcWo3g1P7hWO0uss4TVU=; b=E35EsQhrAWNgMOlbysYvZVpAolEzRf15+al7vZoAB9vjYtZwkwT0muxbSF46fG0McHIXBh Xdt68E7C3ohTPGudcYPoXubzg+1zB716vkPvzqGTOO6K4nCst/An7Tw6G4WjFdTSSbFAh5 v8L+R/RC4xcdvt4p6P9rXJQs42UNf9fqTthZtzVMd50zJah508PDVljkF61Bd5KfZn1jIc 14bf6ZyUQ1SiJm1C2XSnXNoO+iODO4+Py0CNTIV7KdC1InuKL7jvDi+AWKp+jzMxYkhvJu gVH4mCMh4+aWHlDLmMCPMUYOVDIuN/djwXSd8Nk9n0wjPenkYKL2W6RPcPM/8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729910112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=llnG6oPFA/3GaoWquVB0QQeLcWo3g1P7hWO0uss4TVU=; b=Q15xbrL+hSdtHoggVJlaQWJMdRsINL9chHt/uj9NwGuvmMg7e/EPFKATscdmmTNAOVZ5zU tYs0HS1G5+QR7B3jVguNu3AKGM7B/2pkP+k5JiDiGxJs8vXUcJWhvXmUlRxUhM78pLO8TX Dv8sjh6PMtXybshp+o70aH568qweNO9U9BoH6xlUuEcY7zRa2sHIcDsj49J6+kaN+zQrso fi97lcq0LFHbULEn4p3zPrfJnwO2sHzpUnGxxjE7bLLeRaPraKHC6v8uLAEYLQwMDrpuc6 UO8IAyrUsEk35kVx0B8yu7lEa6gS5lozJDUHfNi6MBPh7aYWN6HFDDE7WdJW3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729910112; a=rsa-sha256; cv=none; b=adg0NTxpotVt5Xgsmb+haaP9blC/4kI9+8tcMNQQdlL1TfvZBQQgxRUd1V9y1YUpg/r6m0 hMFnbVBNASlm0TsAWX9YXifq9TIjvaU8mSC9oeYxVUT3km5UP8Jtq8Vm1fmZUbOxib395e 3fdD161oqItRsfEjIqM72dbgdIua8tmO8AYwDIKtI/6dW4mco5MkJM8AZLXd8YHxDoJZOh zupVahWjp4+8vhFZ0nLXz2SPvS4hN05tMPwqrGPlGLAUJZUl2X1b21sNRscN2uknDiYR+d fMRUFzd5YW5u85Wljb/qkPKUt3KN/ckmt5JYdMfFN7+oX56gluUsbpX6S+jvfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xb3f76xnzzrXy; Sat, 26 Oct 2024 02:35:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49Q2ZBco007556; Sat, 26 Oct 2024 02:35:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49Q2ZBQU007553; Sat, 26 Oct 2024 02:35:11 GMT (envelope-from git) Date: Sat, 26 Oct 2024 02:35:11 GMT Message-Id: <202410260235.49Q2ZBQU007553@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: bc0d10d01c3c - main - gpiobus: Make gpiobus_read_ivar extern List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc0d10d01c3c69004d600e14d53cd0dceffe4b09 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=bc0d10d01c3c69004d600e14d53cd0dceffe4b09 commit bc0d10d01c3c69004d600e14d53cd0dceffe4b09 Author: Colin Percival AuthorDate: 2024-10-22 17:51:57 +0000 Commit: Colin Percival CommitDate: 2024-10-26 02:34:57 +0000 gpiobus: Make gpiobus_read_ivar extern This allows acpi_gpiobus to override the method and fall back to the generic gpiobus_read_ivar function if needed. Reviewed by: andrew MFC after: 1 week Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D47250 --- sys/dev/gpio/gpiobus.c | 2 +- sys/dev/gpio/gpiobusvar.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c index 44484d82e2b9..02c02bcd645d 100644 --- a/sys/dev/gpio/gpiobus.c +++ b/sys/dev/gpio/gpiobus.c @@ -752,7 +752,7 @@ gpiobus_hinted_child(device_t bus, const char *dname, int dunit) } } -static int +int gpiobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) { struct gpiobus_ivar *devi; diff --git a/sys/dev/gpio/gpiobusvar.h b/sys/dev/gpio/gpiobusvar.h index e3669e82e594..74783e112f89 100644 --- a/sys/dev/gpio/gpiobusvar.h +++ b/sys/dev/gpio/gpiobusvar.h @@ -179,6 +179,7 @@ int gpiobus_detach(device_t); int gpiobus_init_softc(device_t); int gpiobus_alloc_ivars(struct gpiobus_ivar *); void gpiobus_free_ivars(struct gpiobus_ivar *); +int gpiobus_read_ivar(device_t, device_t, int, uintptr_t *); int gpiobus_acquire_pin(device_t, uint32_t); int gpiobus_release_pin(device_t, uint32_t);