svn commit: r355535 - head/sys/dev/gpio
Ian Lepore
ian at FreeBSD.org
Sun Dec 8 21:12:34 UTC 2019
Author: ian
Date: Sun Dec 8 21:12:33 2019
New Revision: 355535
URL: https://svnweb.freebsd.org/changeset/base/355535
Log:
Add a MODULE_DEPEND() for the gpioths driver. Also, note that the prior commit
changed the sysctl format for the temperature from "I" to "IK", and
correspondingly changed the units from integer degrees C to decikelvin.
For access via sysctl(8) the output will be the same except that now
decimal fractions will be shown when available.
Modified:
head/sys/dev/gpio/gpioths.c
Modified: head/sys/dev/gpio/gpioths.c
==============================================================================
--- head/sys/dev/gpio/gpioths.c Sun Dec 8 21:11:25 2019 (r355534)
+++ head/sys/dev/gpio/gpioths.c Sun Dec 8 21:12:33 2019 (r355535)
@@ -76,8 +76,6 @@ struct gpioths_softc {
struct callout callout;
};
-static devclass_t gpioths_devclass;
-
/* Prototypes */
static int gpioths_probe(device_t dev);
static int gpioths_attach(device_t dev);
@@ -376,5 +374,8 @@ static device_method_t gpioths_methods[] = {
DEVMETHOD_END
};
+static devclass_t gpioths_devclass;
+
DEFINE_CLASS_0(gpioths, gpioths_driver, gpioths_methods, sizeof(struct gpioths_softc));
DRIVER_MODULE(gpioths, gpiobus, gpioths_driver, gpioths_devclass, 0, 0);
+MODULE_DEPEND(gpioths, gpiobus, 1, 1, 1);
More information about the svn-src-all
mailing list