diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-10-30 05:03:17 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-10-30 05:03:17 +0000 |
commit | df52f0c37768dbe9b605985e09984ca1af6644d3 (patch) | |
tree | f05292876d736bdeca518f56d3e1fca51a772b11 /sys/dev/acpi | |
parent | b171f4a6636d5bab14298cb325ebd152b09fdf55 (diff) |
Add "handling" for dock/undock events for non-ACPI docks to acpithinkpad.
The "handling" is just to consume the event so that no dmesg output is
printed. Since these docks have no bays, there isn't much to do on these
events anyway.
ok jcs@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpithinkpad.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c index 7ee784f5b42..7fa99bdbbcb 100644 --- a/sys/dev/acpi/acpithinkpad.c +++ b/sys/dev/acpi/acpithinkpad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpithinkpad.c,v 1.32 2013/10/19 15:49:35 deraadt Exp $ */ +/* $OpenBSD: acpithinkpad.c,v 1.33 2013/10/30 05:03:16 mlarkin Exp $ */ /* * Copyright (c) 2008 joshua stein <jcs@openbsd.org> * @@ -66,6 +66,8 @@ #define THINKPAD_BUTTON_MICROPHONE_MUTE 0x101b #define THINKPAD_BUTTON_FN_F11 0x100b #define THINKPAD_BUTTON_HIBERNATE 0x100c +#define THINKPAD_PORT_REPL_DOCKED 0x4010 +#define THINKPAD_PORT_REPL_UNDOCKED 0x4011 #define THINKPAD_LID_OPEN 0x5001 #define THINKPAD_LID_CLOSED 0x5002 #define THINKPAD_TABLET_SCREEN_NORMAL 0x500a @@ -343,6 +345,8 @@ thinkpad_hotkey(struct aml_node *node, int notify_type, void *arg) case THINKPAD_BUTTON_THINKVANTAGE: case THINKPAD_LID_CLOSED: case THINKPAD_LID_OPEN: + case THINKPAD_PORT_REPL_DOCKED: + case THINKPAD_PORT_REPL_UNDOCKED: case THINKPAD_POWER_CHANGED: case THINKPAD_SWITCH_WIRELESS: case THINKPAD_TABLET_PEN_INSERTED: |