From nobody Wed Apr 12 04:21:26 2023 X-Original-To: dev-commits-src-main@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 4Px8fc5fkmz45Cg8; Wed, 12 Apr 2023 04:21:28 +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 4Px8fZ58mwz40D2; Wed, 12 Apr 2023 04:21:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273286; 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=geWNKr2o3WIxjQEzZS/XPk1gCJiOWMl2PPCtSHOCez0=; b=Ce9wEsnYUNgzaFUAMBI8969Up3ZP+doqvE43nWNZH1ju0v7KLZiXTiooXgGzMMEuTFn4/1 gid8C9oMcN3LjJ+Fz5uM1Pli9GX6q+IZTDKRuWZNRuxJeXbXYV1Pm2rrXa8Um5tSRdwPck DccE+tm7xgrBBqvJCZO6KUzICF+Iws42/zwpcka08B5+J0lVVtqdbxSiyTkPUHAlolgGiJ vH1jbOGZopmRsvgROij3ySO85cqnUVWiYMiUQkCkLmdBwNfPC9cEpisvhr0WxuVh5t87Kk P1hkD1qj63qHm170ZWpzwLqHkdebGdQSM9DV3SOKD0FSIsyAdKygp+Y/BcHFVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273286; 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=geWNKr2o3WIxjQEzZS/XPk1gCJiOWMl2PPCtSHOCez0=; b=s4MuKamPQtnVJgpgB1PAAJ+2ngX8S+OvlIT1srGS4D53/EJw4rE0g16F1KJ/X6Oab7xq5m nONXbFv6C6J3X4kj1+vYJU7ShhBtAd1gjUJjHyfgvlxRvrHvu1b7ajl4shx1+/DRkep2Hr rhtHAEl24urimpbrq6Rqpjc6/eEuFg00EZgkrP8g9M8mHmC6uhVnH6fUGi1rQSIBizNAsv 5xieafbQxSdo4lWbE9TwpI+FunbEjeW+QRrYtUX0cjgH2kiCc9uyCV/CgYAHX0qugJ1mL6 5SgP8u4skTrPyZ3gOiBW7cpKBV1kxl0kvNal+sQn4OA6GBDz5QRIyQvUty9gwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681273286; a=rsa-sha256; cv=none; b=MNa6KYdH6u9Ks7V51MRhRy3jEfGNED0/lzCmkJRHjM+as2JsQXb1tbm5nr4RQIHvlZbtiv CMuVj4YW0zZIMZVVmnC7wjpgQzqzv0AgwpMSN/0gN2uXyzHG5JVB43lXJZ+COXEATiUY7w bEnRDX+ABPL2wPbTD6Fqajic0PUAgivbSAVxIYCu5THAzx4VoopWbHEB5CnU83hum4nqv7 41Tfeynzk2Eoj/LTIk/yGZJ3oYgBtvo4Bx6Sk52+jD5vMiLh3UA6oaEHSratzc89tt4SWu ncQLjJ6/M4F3QIYC0ScwSwChU02lczJuJJwP1R9Mjcx19db4W+POvHeT+csICQ== 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 4Px8fZ41rkzlL6; Wed, 12 Apr 2023 04:21:26 +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 33C4LQdh091979; Wed, 12 Apr 2023 04:21:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33C4LQVd091978; Wed, 12 Apr 2023 04:21:26 GMT (envelope-from git) Date: Wed, 12 Apr 2023 04:21:26 GMT Message-Id: <202304120421.33C4LQVd091978@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: deac4c7f0753 - main - iicbus(4): Use the existing CTLFLAG_RWTUN flag definition List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: deac4c7f0753841de8da4d7f37d7e49620b3bbb4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=deac4c7f0753841de8da4d7f37d7e49620b3bbb4 commit deac4c7f0753841de8da4d7f37d7e49620b3bbb4 Author: Zhenlei Huang AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang CommitDate: 2023-04-12 04:20:38 +0000 iicbus(4): Use the existing CTLFLAG_RWTUN flag definition Use it when possible, instead of separated flags. No functional change intended. Reviewed by: hselasky, erj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39466 --- sys/dev/iicbus/iicbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c index 4ecdda75767b..8bba023a5384 100644 --- a/sys/dev/iicbus/iicbus.c +++ b/sys/dev/iicbus/iicbus.c @@ -323,7 +323,7 @@ iicbus_init_frequency(device_t dev, u_int bus_freq) */ SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), - OID_AUTO, "frequency", CTLFLAG_RW | CTLFLAG_TUN, &sc->bus_freq, + OID_AUTO, "frequency", CTLFLAG_RWTUN, &sc->bus_freq, sc->bus_freq, "Bus frequency in Hz"); }