Date: Sat, 15 Jun 2019 20:53:27 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349080 - head/sys/dev/pwm Message-ID: <201906152053.x5FKrRhp052667@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Sat Jun 15 20:53:26 2019 New Revision: 349080 URL: https://svnweb.freebsd.org/changeset/base/349080 Log: 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. Modified: head/sys/dev/pwm/pwmbus.c Modified: head/sys/dev/pwm/pwmbus.c ============================================================================== --- head/sys/dev/pwm/pwmbus.c Sat Jun 15 20:25:36 2019 (r349079) +++ head/sys/dev/pwm/pwmbus.c Sat Jun 15 20:53:26 2019 (r349080) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906152053.x5FKrRhp052667>