Make pwmbus driver and devclass vars static; they're not mentioned in any

header file, so they can't be used outside this file anyway.
This commit is contained in:
Ian Lepore 2019-06-15 20:53:26 +00:00
parent 2d5913e4f4
commit 968e5efcca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349080

View File

@ -195,12 +195,12 @@ static device_method_t pwmbus_methods[] = {
DEVMETHOD_END
};
driver_t pwmbus_driver = {
static driver_t pwmbus_driver = {
"pwmbus",
pwmbus_methods,
sizeof(struct pwmbus_softc),
};
devclass_t pwmbus_devclass;
static devclass_t pwmbus_devclass;
EARLY_DRIVER_MODULE(pwmbus, pwm, pwmbus_driver, pwmbus_devclass, 0, 0,
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);