Date: Thu, 3 Sep 2020 08:02:19 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365290 - head/sys/dev/iicbus Message-ID: <202009030802.08382JSm018898@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Sep 3 08:02:19 2020 New Revision: 365290 URL: https://svnweb.freebsd.org/changeset/base/365290 Log: move defintion of hw.i2c sysctl node from iicbb to iicbus MFC after: 2 weeks Modified: head/sys/dev/iicbus/iicbb.c head/sys/dev/iicbus/iicbus.c Modified: head/sys/dev/iicbus/iicbb.c ============================================================================== --- head/sys/dev/iicbus/iicbb.c Thu Sep 3 08:01:21 2020 (r365289) +++ head/sys/dev/iicbus/iicbb.c Thu Sep 3 08:02:19 2020 (r365290) @@ -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"); Modified: head/sys/dev/iicbus/iicbus.c ============================================================================== --- head/sys/dev/iicbus/iicbus.c Thu Sep 3 08:01:21 2020 (r365289) +++ head/sys/dev/iicbus/iicbus.c Thu Sep 3 08:02:19 2020 (r365290) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009030802.08382JSm018898>