mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use DEVMETHOD_END instead of its value to indicate end of methods table
This commit is contained in:
parent
26c36284a9
commit
e2a1919df0
3 changed files with 3 additions and 3 deletions
|
|
@ -195,7 +195,7 @@ static device_method_t gpioc_methods[] = {
|
|||
DEVMETHOD(device_suspend, bus_generic_suspend),
|
||||
DEVMETHOD(device_resume, bus_generic_resume),
|
||||
|
||||
{ 0, 0 }
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
driver_t gpioc_driver = {
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ static device_method_t gpioiic_methods[] = {
|
|||
DEVMETHOD(ofw_bus_get_node, gpioiic_get_node),
|
||||
#endif
|
||||
|
||||
{ 0, 0 }
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t gpioiic_driver = {
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ static device_method_t gpioled_methods[] = {
|
|||
DEVMETHOD(device_attach, gpioled_attach),
|
||||
DEVMETHOD(device_detach, gpioled_detach),
|
||||
|
||||
{ 0, 0 }
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t gpioled_driver = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue