Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2019 21:12:33 +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: r355535 - head/sys/dev/gpio
Message-ID:  <201912082112.xB8LCXjN042042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912082112.xB8LCXjN042042>