diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2020-09-03 08:02:19 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2020-09-03 08:02:19 +0000 |
| commit | e7fe5d60b15508fbeb8c6a3ec2e3b9520f30d3a4 (patch) | |
| tree | 4f924c9cf5eeab86ce259408582a1763d3fc9e77 /sys/dev/iicbus | |
| parent | 0524c5fc82c83f77cbc5ad189d95f44c989f4dd6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/iicbus')
| -rw-r--r-- | sys/dev/iicbus/iicbb.c | 2 | ||||
| -rw-r--r-- | sys/dev/iicbus/iicbus.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iicbb.c b/sys/dev/iicbus/iicbb.c index 049e867919f66..caa544ef403cb 100644 --- a/sys/dev/iicbus/iicbb.c +++ b/sys/dev/iicbus/iicbb.c @@ -228,7 +228,7 @@ iicbb_print_child(device_t bus, device_t dev) #ifdef IICBB_DEBUG static int i2c_debug = 0; -static SYSCTL_NODE(_hw, OID_AUTO, i2c, CTLFLAG_RW, 0, "i2c debug"); +SYSCTL_DECL(_hw_i2c); SYSCTL_INT(_hw_i2c, OID_AUTO, iicbb_debug, CTLFLAG_RWTUN, &i2c_debug, 0, "Enable i2c bit-banging driver debug"); diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c index ddc2b07d86b86..b16a2bdba3321 100644 --- a/sys/dev/iicbus/iicbus.c +++ b/sys/dev/iicbus/iicbus.c @@ -52,6 +52,8 @@ __FBSDID("$FreeBSD$"); /* See comments below for why auto-scanning is a bad idea. */ #define SCAN_IICBUS 0 +SYSCTL_NODE(_hw, OID_AUTO, i2c, CTLFLAG_RW, 0, "i2c controls"); + static int iicbus_probe(device_t dev) { |
