svn commit: r259034 - head/sys/arm/broadcom/bcm2835
Luiz Otavio O Souza
loos at FreeBSD.org
Fri Dec 6 17:45:15 UTC 2013
Author: loos
Date: Fri Dec 6 17:45:14 2013
New Revision: 259034
URL: http://svnweb.freebsd.org/changeset/base/259034
Log:
Make the sysctl node read-only.
Approved by: adrian (mentor)
Modified:
head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
Modified: head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c Fri Dec 6 15:27:42 2013 (r259033)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c Fri Dec 6 17:45:14 2013 (r259034)
@@ -589,7 +589,7 @@ bcm_gpio_sysctl_init(struct bcm_gpio_sof
tree_node = device_get_sysctl_tree(sc->sc_dev);
tree = SYSCTL_CHILDREN(tree_node);
pin_node = SYSCTL_ADD_NODE(ctx, tree, OID_AUTO, "pin",
- CTLFLAG_RW, NULL, "GPIO Pins");
+ CTLFLAG_RD, NULL, "GPIO Pins");
pin_tree = SYSCTL_CHILDREN(pin_node);
for (i = 0; i < sc->sc_gpio_npins; i++) {
More information about the svn-src-head
mailing list