Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177526359
D61488.1794630571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D61488.1794630571.diff
View Options
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -268,7 +268,8 @@
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
--- a/sys/dev/asmc/asmc_debug.c
+++ b/sys/dev/asmc/asmc_debug.c
@@ -153,7 +153,8 @@
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
--- a/sys/dev/asmc/asmc_sysctl.c
+++ b/sys/dev/asmc/asmc_sysctl.c
@@ -46,7 +46,8 @@
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 @@
{ -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
--- a/sys/dev/asmc/asmcmmio.h
+++ b/sys/dev/asmc/asmcmmio.h
@@ -26,7 +26,7 @@
* 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
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -63,7 +63,7 @@
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;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 4:29 AM (6 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41710983
Default Alt Text
D61488.1794630571.diff (2 KB)
Attached To
Mode
D61488: asmc: wrap the lines that exceed 80 columns
Attached
Detach File
Event Timeline