git: 1988abf023a3 - main - asmc: make the raw key debug state unconditional
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Nov 2026 22:15:10 UTC
The branch main has been updated by seuros:
URL: https://cgit.FreeBSD.org/src/commit/?id=1988abf023a37e42d21ea38ec04fa4684262918f
commit 1988abf023a37e42d21ea38ec04fa4684262918f
Author: Abdelkader Boudih <seuros@FreeBSD.org>
AuthorDate: 2026-11-07 20:27:44 +0000
Commit: Abdelkader Boudih <seuros@FreeBSD.org>
CommitDate: 2026-11-07 20:27:44 +0000
asmc: make the raw key debug state unconditional
The ASMC_DEBUG block was in mid-struct, so struct asmc_softc had a different
layout in translation units that missed opt_asmc.h.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61292
---
sys/dev/asmc/asmcvar.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index 4a11008239f5..5b3c4ec918cf 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -65,14 +65,12 @@ struct asmc_softc {
struct cdev *sc_kbd_bkl;
uint32_t sc_kbd_bkl_level;
unsigned int sc_light_control;
-#ifdef ASMC_DEBUG
- /* Raw key access */
+ /* Raw key access; only used when built with ASMC_DEBUG */
struct sysctl_oid *sc_raw_tree;
char sc_rawkey[ASMC_KEYLEN + 1];
uint8_t sc_rawval[ASMC_MAXVAL];
uint8_t sc_rawlen;
char sc_rawtype[ASMC_TYPELEN + 1];
-#endif
/* Voltage/Current/Power/Light sensors */
char *sc_voltage_sensors[ASMC_MAX_SENSORS];
int sc_voltage_count;