Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163285984
D55848.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D55848.id.diff
View Options
diff --git a/sys/dev/acpi_support/acpi_system76.c b/sys/dev/acpi_support/acpi_system76.c
--- a/sys/dev/acpi_support/acpi_system76.c
+++ b/sys/dev/acpi_support/acpi_system76.c
@@ -27,18 +27,19 @@
*/
#include "opt_acpi.h"
+
#include <sys/param.h>
-#include <sys/kernel.h>
#include <sys/bus.h>
+#include <sys/kernel.h>
#include <sys/module.h>
+#include <sys/sysctl.h>
#include <contrib/dev/acpica/include/acpi.h>
#include <contrib/dev/acpica/include/accommon.h>
#include <dev/acpica/acpivar.h>
-#include <sys/sysctl.h>
-
#include <dev/backlight/backlight.h>
+
#include "backlight_if.h"
#define _COMPONENT ACPI_OEM
@@ -91,8 +92,8 @@
enum {
S76_CTRL_KBB = 1, /* Keyboard Brightness */
S76_CTRL_KBC = 2, /* Keyboard Color */
- S76_CTRL_BCTL = 3, /* Battary Charging Start Thresholds */
- S76_CTRL_BCTH = 4, /* Battary Charging End Thresholds */
+ S76_CTRL_BCTL = 3, /* Battery Charging Start Thresholds */
+ S76_CTRL_BCTH = 4, /* Battery Charging End Thresholds */
};
#define S76_CTRL_MAX 5
@@ -125,16 +126,16 @@
.desc = "Keyboard Color",
},
[S76_CTRL_BCTL] = {
- .name = "battary_thresholds_low",
+ .name = "battery_charge_min",
.get_method = S76_CTRL_GBCT,
.set_method = S76_CTRL_SBCT,
- .desc = "Battary charging start thresholds",
+ .desc = "Start charging the battery when this threshold is reached (percentage)",
},
[S76_CTRL_BCTH] = {
- .name = "battary_thresholds_high",
+ .name = "battery_charge_max",
.get_method = S76_CTRL_GBCT,
.set_method = S76_CTRL_SBCT,
- .desc = "Battary charging end thresholds",
+ .desc = "Stop charging the battery when this threshold is reached (percentage)",
},
};
@@ -376,7 +377,7 @@
if (req->newptr == NULL) {
/*
- * ACPI will not notify us if battary thresholds changes
+ * ACPI will not notify us if battery thresholds changes
* outside this module. Therefore, always fetch those values.
*/
if (method != S76_CTRL_BCTL && method != S76_CTRL_BCTH)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 6:06 PM (12 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35375468
Default Alt Text
D55848.id.diff (1 KB)
Attached To
Mode
D55848: acpi_system76: fix mis-spelled words and style headers
Attached
Detach File
Event Timeline
Log In to Comment