From nobody Sun Oct 02 04:29:31 2022 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 4Mg9wX3gYXz4dsxJ; Sun, 2 Oct 2022 04:29:32 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mg9wW3KcPz44kr; Sun, 2 Oct 2022 04:29:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684971; 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=4ULdD+gX8h9p2pgRlff1BMtWFkNylW+iF3Zfb6PLmb8=; b=hKz2cWJEhQlHuT67gI1Ycd02AKpN5ETSU/1J59kqhwgfK1uLMN5eRgRhIIie9ePU6OQYIb 4PO5FQKUx/K1M22bG7K0D4iAjcBz0z0D3DmIBDJcsw+doh5L9wtb2B1qegw/fVQuhRqpFj pyI3nIVSljsoXvY2GUacoWEQuB8udfK23rXzZE6DOrXay3nY5ixkZKUtArDGCa1mdsKgrX dS1XVu4GKGBHtTyYBX0R5kRp5X/56Kq+g0/t/Zyl0sGDfMUi97zAFkwYr/JZM6hDrF1n83 ukiQoqpvL8qUJJx7mcfKTewXfX2rgTLyDpNygpgj7UWGe/i42OYeTIOmf4yrPg== 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 4Mg9wW2QvDzlYJ; Sun, 2 Oct 2022 04:29:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2924TVIR058282; Sun, 2 Oct 2022 04:29:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TViI058281; Sun, 2 Oct 2022 04:29:31 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:31 GMT Message-Id: <202210020429.2924TViI058281@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: e490a1c8c5eb - stable/13 - tca6416: remove write only sc 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e490a1c8c5eb5341174ada44e70331e88e878f20 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684971; 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=4ULdD+gX8h9p2pgRlff1BMtWFkNylW+iF3Zfb6PLmb8=; b=hiXfppgepuL9MUNIM6lLEdxT78h6wmk1HRFUkWNiI+CH8DsXCZnVPsAbkGBjcSE4sl1HDi 3lG7N0SWuGJioqd3PvDVmp1TVwEvIy4gDgfXSiiBgRnwuVM3ps5qAejqrFqen5pMNzNYOj t84HIow/rDUZp60Slet9Cvj7hxRLJ5CwnUgR0muvacl2wP8UpcrGH6tQs5zOoXjhpdFwKO rTtnVx1OiNxixzwLaFMO6bUBHM7FnDaBugVfJnznxZWiCnSiA9/x1B3zmYsXh7B5iyai6S TBvTTIPmJkfGXmPAo5H+E/tkC2B5WGBqb+lf0eduwCfza9CdiRH0s+BY3a4qLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684971; a=rsa-sha256; cv=none; b=pWWESMERDCzs4R3/rbfu2AHMxkAcUl9X7aTiEz5iqD6n3+TH8CZ3fWHAyt0dWl5VSrrTXZ 0TaZzoXnsvy/9HxBM4qr4UcPeC9cDPxuQ3evYwPOGf47SdYXkO44RSC5tjoqR2dTTj1Y91 CrIXlvgHmTH+ThjJLTZG0Nab7OZBdlvEN6j1MePLCPtoMj76CyN1hxyOQCQQGlbg8qmBot J7prM1cxKBMXFuX+mQi+qd9glzA3oNtoNP6YWm8eZz/47UgvdBxdnHYrUhBzCCqHu8pk/w +zDjE9Kpq6Lz9x0v/vTW47dqVrXGYaMrdvTT0Xof+skofYCrVo5rL3RVaQxIig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e490a1c8c5eb5341174ada44e70331e88e878f20 commit e490a1c8c5eb5341174ada44e70331e88e878f20 Author: Warner Losh AuthorDate: 2022-07-08 17:53:30 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:52 +0000 tca6416: remove write only sc Sponsored by: Netflix (cherry picked from commit 22127c7c1b9c0f8feb73f13a829b8b757f2274eb) --- sys/dev/iicbus/gpio/tca6416.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/iicbus/gpio/tca6416.c b/sys/dev/iicbus/gpio/tca6416.c index cc76bd8971eb..436a21ec10b7 100644 --- a/sys/dev/iicbus/gpio/tca6416.c +++ b/sys/dev/iicbus/gpio/tca6416.c @@ -274,12 +274,9 @@ tca6416_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) static int tca6416_pin_getflags(device_t dev, uint32_t pin, uint32_t *pflags) { - struct tca6416_softc *sc; int error; uint8_t reg_addr, reg_bit, val; - sc = device_get_softc(dev); - if (pin >= NUM_PINS || pflags == NULL) return (EINVAL); @@ -366,12 +363,9 @@ tca6416_pin_getname(device_t dev, uint32_t pin, char *name) static int tca6416_pin_get(device_t dev, uint32_t pin, unsigned int *pval) { - struct tca6416_softc *sc; uint8_t reg_bit, reg_addr, reg_pvalue; int error; - sc = device_get_softc(dev); - if (pin >= NUM_PINS || pval == NULL) return (EINVAL);