From nobody Tue Apr 05 04:32:19 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 C501A1A908E7; Tue, 5 Apr 2022 04:32:20 +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 4KXZVr2Vt5z4gLk; Tue, 5 Apr 2022 04:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133140; 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=o6Gh7RRXYIspcYNeBYXt2azEOHkvYoK015Tl8X4+Ths=; b=O+BqzY76Ef/TTwCMgO0P1t4aeOUuYnH9XY6FD7VaOzrrCWJmU0jubegBs1m67eLR3SngQZ T365+Ps0095xnvpVKWbcNMCFE8NWRZDtelvBDIgd0zwlZbnwofssL827KLriCIaGvoWgKh MWofSr2I6BvY0u2nmE1rdcZCj3Jn7Xf9pAl+ruu+LUzhvPcC7jzl9NZhf2HqC7lMEvrEhd W2ZV2o3iynJEfvcrchDEQHj3oikZHLkov+Iy9x6TxIJ/duYgI5vbG5uHzPuXx6lJqrlULV vNlJVKv2IhQztB4HRwXHyH2enwk6Wt+q+xi+zbvFQD+dxzzBF+zQy1C+aZeW8w== 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 DEE881FA6E; Tue, 5 Apr 2022 04:32:19 +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 2354WJxj008857; Tue, 5 Apr 2022 04:32:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WJ4g008856; Tue, 5 Apr 2022 04:32:19 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:19 GMT Message-Id: <202204050432.2354WJ4g008856@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 22127c7c1b9c - main - 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/main X-Git-Reftype: branch X-Git-Commit: 22127c7c1b9c0f8feb73f13a829b8b757f2274eb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133140; 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=o6Gh7RRXYIspcYNeBYXt2azEOHkvYoK015Tl8X4+Ths=; b=SMSfCPgT5kKZFnJ3WfITB/7pi9f5f7bWKZh1h9u7LNEosEkhoEPXnBT7nX2HF+TKauRqVd JQ1xzw/73zILQQbf1Viri72qKQZJzKEkqCKK/ism16apwRNcH86/7agpu6r+R74FytCeCJ tbcIpEXHKCLrZ/CgYYAoDSbvgEar2YMEZW8Ak1pSFMv4bJ7PGdWGkNSLSoBcWbBTJzTiXP QORRSlCxFwoYnRe+5OwNwjlCGG2yAdASOI4qdWXffzdzcg8KJ/WIr0YWSY25E4iOm6ux2P lWkTLeVE3hj1TIPczRMWR7ZPLcI2HlGHRN7z8ujJpaiRPidjqpgrZOF+r5j1yQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133140; a=rsa-sha256; cv=none; b=SWUCmcWNvnU+U/xAUVd8Y9nTukltGRebuwMUMIlsOP1bJPHBE+8AjL2mCSKNb6XVT/QbDR Ww2cRtB0BX0N6rvyjRaoHExlemT9huONrjtLplshJKCPveSBWJfEcNiZ5P+e5ryuxHvnK7 HFm9eHNjRAzW8GLz97IwQNqXsBCx8QGccdVab0fyUv+dKQazrA1/RX7dS4uNlT5QjTIQGi Kh2s+nKiwg+WXAKsdi2vfOPZI2In/GV2Z0R+2GhfBpNvmdxhS8R9g6P6spoOxyJUkntn47 bi2BPFHwH7pVjrm0YXCzbT1xqOUzXoDAWS+Aah7mktLuCa+N/lXxuzttiDQ+yQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=22127c7c1b9c0f8feb73f13a829b8b757f2274eb commit 22127c7c1b9c0f8feb73f13a829b8b757f2274eb Author: Warner Losh AuthorDate: 2022-04-05 01:34:59 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:36 +0000 tca6416: remove write only sc Sponsored by: Netflix --- 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 9429a62d6954..8007ae98f0c9 100644 --- a/sys/dev/iicbus/gpio/tca6416.c +++ b/sys/dev/iicbus/gpio/tca6416.c @@ -273,12 +273,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); @@ -365,12 +362,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);