git: deac4c7f0753 - main - iicbus(4): Use the existing CTLFLAG_RWTUN flag definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Apr 2023 04:21:26 UTC
The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=deac4c7f0753841de8da4d7f37d7e49620b3bbb4 commit deac4c7f0753841de8da4d7f37d7e49620b3bbb4 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> 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"); }