- Add a DEVMETHOD_END alias for KOBJMETHOD_END so that along with 'driver_t'
and DEVMETHOD() we can fully hide the explicit mention of kobj(9) from device drivers. - Update the example in driver.9 to use DEVMETHOD_END. Submitted by: jhb MFC after: 3 days
This commit is contained in:
parent
471ad1d097
commit
788a85e884
@ -28,7 +28,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd March 3, 2010
|
||||
.Dd November 22, 2011
|
||||
.Dt DRIVER 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -58,7 +58,7 @@ static device_method_t foo_methods[] = {
|
||||
DEVMETHOD(bogo_twiddle, foo_twiddle),
|
||||
|
||||
/* Terminate method list */
|
||||
{ 0, 0 }
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t foo_driver = {
|
||||
|
@ -571,9 +571,10 @@ extern int bus_current_pass;
|
||||
void bus_set_pass(int pass);
|
||||
|
||||
/**
|
||||
* Shorthand for constructing method tables.
|
||||
* Shorthands for constructing method tables.
|
||||
*/
|
||||
#define DEVMETHOD KOBJMETHOD
|
||||
#define DEVMETHOD_END KOBJMETHOD_END
|
||||
|
||||
/*
|
||||
* Some common device interfaces.
|
||||
|
Loading…
Reference in New Issue
Block a user