summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-06-19 02:50:08 +0000
committerjmg <jmg@FreeBSD.org>2003-06-19 02:50:08 +0000
commit71b315bb4adec2ff08c5995dd2d84a9f51faaedc (patch)
tree65504d5f7319f87a1bdbd8227c644c3871d4fc07 /sys/dev/iicbus
parent5a91e1d61c2a53d12f8b7f04eaa6a17f364f9bb6 (diff)
downloadFreeBSD-src-71b315bb4adec2ff08c5995dd2d84a9f51faaedc.zip
FreeBSD-src-71b315bb4adec2ff08c5995dd2d84a9f51faaedc.tar.gz
make iicbb_devclass and iicbb_driver globally visible. This will let
drivers that implemnt the i2c bit banging bus interface not have to recompile iicbb in order to add an attachment for it. This will mean the bktr and other definitions can go back to their respective drivers.
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r--sys/dev/iicbus/iicbb.c4
-rw-r--r--sys/dev/iicbus/iiconf.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/iicbus/iicbb.c b/sys/dev/iicbus/iicbb.c
index 436626c..c83f47c 100644
--- a/sys/dev/iicbus/iicbb.c
+++ b/sys/dev/iicbus/iicbb.c
@@ -96,13 +96,13 @@ static device_method_t iicbb_methods[] = {
{ 0, 0 }
};
-static driver_t iicbb_driver = {
+driver_t iicbb_driver = {
"iicbb",
iicbb_methods,
sizeof(struct iicbb_softc),
};
-static devclass_t iicbb_devclass;
+devclass_t iicbb_devclass;
static int iicbb_probe(device_t dev)
{
diff --git a/sys/dev/iicbus/iiconf.h b/sys/dev/iicbus/iiconf.h
index a9e6d76..3a9e7e3 100644
--- a/sys/dev/iicbus/iiconf.h
+++ b/sys/dev/iicbus/iiconf.h
@@ -132,6 +132,9 @@ extern u_char iicbus_get_addr(device_t);
#define IICBUS_MAXVER 1
#define IICBUS_PREFVER IICBUS_MODVER
+extern driver_t iicbb_driver;
+extern devclass_t iicbb_devclass;
+
#define IICBB_MODVER 1
#define IICBB_MINVER 1
#define IICBB_MAXVER 1
OpenPOWER on IntegriCloud