summaryrefslogtreecommitdiff
path: root/sys/dev/hid
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2022-11-11 15:25:14 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2022-11-11 15:25:14 +0000
commit5294ffd57b4804c0500625f70c13a191ad613f76 (patch)
treea2755d07bfb3df5bc109b12e9a9733443fdd1a3a /sys/dev/hid
parent102091ec2c43022672387c1c5267aab48e717056 (diff)
Add icc(4) to handle Customer Control keyboards attached to i2c bus.
ok anton@ patrick@
Diffstat (limited to 'sys/dev/hid')
-rw-r--r--sys/dev/hid/hidcc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/hid/hidcc.c b/sys/dev/hid/hidcc.c
index 7ab8c39f30e..d45b9eca936 100644
--- a/sys/dev/hid/hidcc.c
+++ b/sys/dev/hid/hidcc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hidcc.c,v 1.2 2022/11/11 13:59:40 anton Exp $ */
+/* $OpenBSD: hidcc.c,v 1.3 2022/11/11 15:25:13 matthieu Exp $ */
/*
* Copyright (c) 2022 Anton Lindqvist <anton@openbsd.org>
@@ -30,7 +30,7 @@
#define DEVNAME(sc) ((sc)->sc_dev->dv_xname)
-/* #define HIDCC_DEBUG */
+#define HIDCC_DEBUG
#ifdef HIDCC_DEBUG
#define DPRINTF(x...) do { if (hidcc_debug) printf(x); } while (0)
struct hidcc;
@@ -163,8 +163,8 @@ static const struct hidcc_keysym hidcc_keysyms[] = {
N(0x006C, "Yellow Menu Button", 0, 0)
N(0x006D, "Aspect", 0, 0)
N(0x006E, "3D Mode Select", 0, 0)
- N(0x006F, "Display Brightness Increment", 0, 0)
- N(0x0070, "Display Brightness Decrement", 0, 0)
+ Y(0x006F, "Display Brightness Increment", KS_Cmd_BrightnessUp, 0)
+ Y(0x0070, "Display Brightness Decrement", KS_Cmd_BrightnessDown, 0)
N(0x0071, "Display Brightness", 0, 0)
N(0x0072, "Display Backlight Toggle", 0, 0)
N(0x0073, "Display Set Brightness to Minimum", 0, 0)