summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_battery.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2006-06-10 08:04:38 +0000
committernjl <njl@FreeBSD.org>2006-06-10 08:04:38 +0000
commit0197d975de1cc76bd62725a4b572fc6a2f77fe3b (patch)
tree5b8fd397d5376479b6be3368b5a773066f0ee44d /sys/dev/acpica/acpi_battery.c
parent3fe756d72682b4492ccd5169d916f6af48875485 (diff)
downloadFreeBSD-src-0197d975de1cc76bd62725a4b572fc6a2f77fe3b.zip
FreeBSD-src-0197d975de1cc76bd62725a4b572fc6a2f77fe3b.tar.gz
Minor sysctl cleanup. The RW flag means read|write and so it is redundant
to add the RD flag. Also, the debug node does not need to be writable.
Diffstat (limited to 'sys/dev/acpica/acpi_battery.c')
-rw-r--r--sys/dev/acpica/acpi_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_battery.c b/sys/dev/acpica/acpi_battery.c
index 65ae958..e5c8d07 100644
--- a/sys/dev/acpica/acpi_battery.c
+++ b/sys/dev/acpica/acpi_battery.c
@@ -482,7 +482,7 @@ acpi_battery_init(void)
NULL, 0, acpi_battery_units_sysctl, "I", "number of batteries");
SYSCTL_ADD_INT(&acpi_battery_sysctl_ctx,
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
- OID_AUTO, "info_expire", CTLFLAG_RD | CTLFLAG_RW,
+ OID_AUTO, "info_expire", CTLFLAG_RW,
&acpi_battery_info_expire, 0,
"time in seconds until info is refreshed");
OpenPOWER on IntegriCloud