svn commit: r196455 - head/sys/dev/asmc

Rui Paulo rpaulo at FreeBSD.org
Sun Aug 23 09:58:07 UTC 2009


Author: rpaulo
Date: Sun Aug 23 09:58:06 2009
New Revision: 196455
URL: http://svn.freebsd.org/changeset/base/196455

Log:
  Make dev.asmc.N.light.control writable by everyone.
  
  Submitted by:	Patrick Lamaiziere <patfbsd at davenulle.org>
  MFC after:	1 week

Modified:
  head/sys/dev/asmc/asmc.c

Modified: head/sys/dev/asmc/asmc.c
==============================================================================
--- head/sys/dev/asmc/asmc.c	Sun Aug 23 09:55:06 2009	(r196454)
+++ head/sys/dev/asmc/asmc.c	Sun Aug 23 09:58:06 2009	(r196455)
@@ -419,7 +419,8 @@ asmc_attach(device_t dev)
 
 		SYSCTL_ADD_PROC(sysctlctx,
 		    SYSCTL_CHILDREN(sc->sc_light_tree),
-		    OID_AUTO, "control", CTLTYPE_INT | CTLFLAG_RW,
+		    OID_AUTO, "control",
+		    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_ANYBODY,
 		    dev, 0, model->smc_light_control, "I",
 		    "Keyboard backlight brightness control");
 	}


More information about the svn-src-all mailing list