git: 07bd2fc4022c - stable/13 - iicbus(4): Use the existing CTLFLAG_RWTUN flag definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Apr 2023 06:19:05 UTC
The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=07bd2fc4022cc7da8c764b25d29aaf98d7a1647f commit 07bd2fc4022cc7da8c764b25d29aaf98d7a1647f Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2023-04-17 06:17:49 +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 (cherry picked from commit deac4c7f0753841de8da4d7f37d7e49620b3bbb4) --- 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 b16a2bdba332..9d6f49de0582 100644 --- a/sys/dev/iicbus/iicbus.c +++ b/sys/dev/iicbus/iicbus.c @@ -325,7 +325,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"); }