git: fcc8bf08b7e9 - main - asmc: wrap the lines that exceed 80 columns
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Nov 2026 21:21:56 UTC
The branch main has been updated by seuros:
URL: https://cgit.FreeBSD.org/src/commit/?id=fcc8bf08b7e9f0b5e8e280c455dbb78dde32edcd
commit fcc8bf08b7e9f0b5e8e280c455dbb78dde32edcd
Author: Abdelkader Boudih <seuros@FreeBSD.org>
AuthorDate: 2026-11-15 21:12:54 +0000
Commit: Abdelkader Boudih <seuros@FreeBSD.org>
CommitDate: 2026-11-15 21:12:54 +0000
asmc: wrap the lines that exceed 80 columns
Remove linter noise.
No functional change.
MFC after: 3 days
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D61488
---
sys/dev/asmc/asmc.c | 3 ++-
sys/dev/asmc/asmc_debug.c | 3 ++-
sys/dev/asmc/asmc_sysctl.c | 7 ++++---
sys/dev/asmc/asmcmmio.h | 2 +-
sys/dev/asmc/asmcvar.h | 2 +-
5 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index 231006f63bb3..03d5bb920bb0 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -269,7 +269,8 @@ asmc_attach(device_t dev)
if (sc->sc_is_t2 &&
asmc_key_getinfo(dev, ASMC_KEY_BCLM, NULL, NULL) == 0) {
SYSCTL_ADD_PROC(sysctlctx,
- SYSCTL_CHILDREN(sysctlnode), OID_AUTO, "battery_charge_limit",
+ SYSCTL_CHILDREN(sysctlnode), OID_AUTO,
+ "battery_charge_limit",
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
dev, 0, asmc_bclm_sysctl, "I",
"Battery charge limit (0-100)");
diff --git a/sys/dev/asmc/asmc_debug.c b/sys/dev/asmc/asmc_debug.c
index 311f2476fe9d..9d52d379be63 100644
--- a/sys/dev/asmc/asmc_debug.c
+++ b/sys/dev/asmc/asmc_debug.c
@@ -153,7 +153,8 @@ asmc_raw_value_sysctl(SYSCTL_HANDLER_ARGS)
sc->sc_rawval[i] = (uint8_t)val;
}
- if (asmc_key_write(dev, sc->sc_rawkey, sc->sc_rawval, sc->sc_rawlen) != 0)
+ if (asmc_key_write(dev, sc->sc_rawkey, sc->sc_rawval,
+ sc->sc_rawlen) != 0)
return (EIO);
return (0);
diff --git a/sys/dev/asmc/asmc_sysctl.c b/sys/dev/asmc/asmc_sysctl.c
index 4be3483e9ea9..232f9b6cb965 100644
--- a/sys/dev/asmc/asmc_sysctl.c
+++ b/sys/dev/asmc/asmc_sysctl.c
@@ -46,7 +46,8 @@ struct asmc_cause {
const char *sleep_desc; /* sleep description, or NULL if same */
};
-#define ASMC_CAUSE_BUFLEN 48 /* "-128 (temperature-overlimit-timeout)\0" */
+/* Widest rendering: "-128 (temperature-overlimit-timeout)\0". */
+#define ASMC_CAUSE_BUFLEN 48
static const struct asmc_cause asmc_cause_table[] = {
{ 5, "good-shutdown", "good-sleep" },
@@ -59,10 +60,10 @@ static const struct asmc_cause asmc_cause_table[] = {
{ -3, "temperature-multisleep", NULL },
{ -4, "sensor-fan", NULL },
{ -30, "temperature-overlimit-timeout", NULL },
- { -40, "pswr-smrst", NULL }, /* power supply watchdog reset */
+ { -40, "pswr-smrst", NULL }, /* watchdog reset */
{ -50, "unmapped", NULL },
{ -60, "low-battery", NULL },
- { -61, "ninja-shutdown", NULL }, /* sudden unexpected power loss */
+ { -61, "ninja-shutdown", NULL }, /* sudden power loss */
{ -62, "ninja-restart", NULL },
{ -70, "palm-rest-temperature", NULL },
{ -71, "sodimm-temperature", NULL },
diff --git a/sys/dev/asmc/asmcmmio.h b/sys/dev/asmc/asmcmmio.h
index ea686c63e9b0..a4a48103b4be 100644
--- a/sys/dev/asmc/asmcmmio.h
+++ b/sys/dev/asmc/asmcmmio.h
@@ -26,7 +26,7 @@ struct asmc_softc;
* T2-specific keys.
*/
#define ASMC_KEY_LDKN "LDKN" /* RO; 1 byte, firmware version */
-#define ASMC_KEY_BCLM "BCLM" /* RW; 1 byte, battery charge limit 0-100 */
+#define ASMC_KEY_BCLM "BCLM" /* RW; 1 byte, charge limit 0-100 */
#define ASMC_KEY_FANMANUAL_T2 "F%dMd" /* RW; 1 byte per fan (T2) */
/*
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index 5ba34533ca6a..d14b2ec11b8d 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -63,7 +63,7 @@ struct asmc_softc {
int sc_rid_mem;
struct resource *sc_iomem;
bool sc_is_mmio;
- int sc_is_t2; /* T2 fan float + per-fan manual */
+ int sc_is_t2; /* T2 float + per-fan manual */
int sc_sms_intrtype;
struct taskqueue *sc_sms_tq;
struct task sc_sms_task;