svn commit: r307962 - head/sys/dev/gpio

Andrew Turner andrew at FreeBSD.org
Wed Oct 26 12:41:45 UTC 2016


Author: andrew
Date: Wed Oct 26 12:41:44 2016
New Revision: 307962
URL: https://svnweb.freebsd.org/changeset/base/307962

Log:
  Stop including a possibly GPLd header from the GPIO code. Add the only
  needed macro to ofw_gpiobus.c.
  
  Reported by:	emaste
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/gpio/gpiobusvar.h
  head/sys/dev/gpio/ofw_gpiobus.c

Modified: head/sys/dev/gpio/gpiobusvar.h
==============================================================================
--- head/sys/dev/gpio/gpiobusvar.h	Wed Oct 26 12:30:53 2016	(r307961)
+++ head/sys/dev/gpio/gpiobusvar.h	Wed Oct 26 12:41:44 2016	(r307962)
@@ -38,7 +38,6 @@
 
 #ifdef FDT
 #include <dev/ofw/ofw_bus_subr.h>
-#include <gnu/dts/include/dt-bindings/gpio/gpio.h>
 #endif
 
 #ifdef	INTRNG

Modified: head/sys/dev/gpio/ofw_gpiobus.c
==============================================================================
--- head/sys/dev/gpio/ofw_gpiobus.c	Wed Oct 26 12:30:53 2016	(r307961)
+++ head/sys/dev/gpio/ofw_gpiobus.c	Wed Oct 26 12:41:44 2016	(r307962)
@@ -41,6 +41,8 @@ __FBSDID("$FreeBSD$");
 
 #include "gpiobus_if.h"
 
+#define	GPIO_ACTIVE_LOW		1
+
 static struct ofw_gpiobus_devinfo *ofw_gpiobus_setup_devinfo(device_t,
 	device_t, phandle_t);
 static void ofw_gpiobus_destroy_devinfo(device_t, struct ofw_gpiobus_devinfo *);


More information about the svn-src-head mailing list