[Git][hardenedbsd/HardenedBSD][hardened/current/cross-dso-cfi] 3 commits: acpi_system76: Improve sysctl names

0 views
Skip to first unread message

HardenedBSD Services (@hardenedbsd-services)

unread,
Mar 14, 2026, 8:01:22 AM (3 days ago) Mar 14
to src-com...@hardenedbsd.org


HardenedBSD Services pushed to branch hardened/current/cross-dso-cfi at HardenedBSD / HardenedBSD


Commits:
f9146417 by Pouria Mousavizadeh Tehrani at 2026-03-14T13:03:10+03:30
acpi_system76: Improve sysctl names

* Improve sysctl descriptions.
* Rename battery charging-threshold sysctl for clarity.
* Fix mis-spelled words.
* Style: sort headers.

Reported by: olce, jhb
Reviewed by: olce
Differential Revision: https://reviews.freebsd.org/D55848

- - - - -
115f7193 by HardenedBSD Sync Services at 2026-03-14T06:03:49-06:00
Merge branch 'freebsd/current/main' into hardened/current/master

- - - - -
fa879796 by HardenedBSD Sync Services at 2026-03-14T06:04:29-06:00
Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

- - - - -


1 changed file:

- sys/dev/acpi_support/acpi_system76.c


Changes:

=====================================
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 @@ static int acpi_system76_backlight_get_info(device_t dev,
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 @@ static const struct s76_ctrl_table s76_sysctl_table[] = {
.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 @@ acpi_system76_sysctl_handler(SYSCTL_HANDLER_ARGS)

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)



View it on GitLab: https://git.hardenedbsd.org/hardenedbsd/HardenedBSD/-/compare/8724e1770058662e84344776e15bd7a2de3e3a47...fa8797960dbc6fa7141ca90c0de50bd8e5161838

--
View it on GitLab: https://git.hardenedbsd.org/hardenedbsd/HardenedBSD/-/compare/8724e1770058662e84344776e15bd7a2de3e3a47...fa8797960dbc6fa7141ca90c0de50bd8e5161838
You're receiving this email because of your account on git.hardenedbsd.org.


Reply all
Reply to author
Forward
0 new messages