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.
This commit is contained in:
parent
94040887ee
commit
9c77e81b5d
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user