From 71b315bb4adec2ff08c5995dd2d84a9f51faaedc Mon Sep 17 00:00:00 2001 From: jmg Date: Thu, 19 Jun 2003 02:50:08 +0000 Subject: 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. --- sys/dev/iicbus/iicbb.c | 4 ++-- sys/dev/iicbus/iiconf.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev/iicbus') 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 -- cgit v1.1