blob: 6512a06bc0535d28e312ae7a697b6507de5dec40 [file] [log] [blame]
Matthew Garrett0b3f6102009-01-09 20:17:11 +00001/*
2 * Dell WMI hotkeys
3 *
4 * Copyright (C) 2008 Red Hat <mjg@redhat.com>
5 *
6 * Portions based on wistron_btns.c:
7 * Copyright (C) 2005 Miloslav Trmac <mitr@volny.cz>
8 * Copyright (C) 2005 Bernhard Rosenkraenzer <bero@arklinux.org>
9 * Copyright (C) 2005 Dmitry Torokhov <dtor@mail.ru>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25
Joe Percheseb889522011-03-29 15:21:37 -070026#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
27
Matthew Garrett0b3f6102009-01-09 20:17:11 +000028#include <linux/kernel.h>
29#include <linux/module.h>
30#include <linux/init.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090031#include <linux/slab.h>
Matthew Garrett0b3f6102009-01-09 20:17:11 +000032#include <linux/types.h>
33#include <linux/input.h>
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070034#include <linux/input/sparse-keymap.h>
Matthew Garrett0b3f6102009-01-09 20:17:11 +000035#include <linux/acpi.h>
36#include <linux/string.h>
Rezwanul Kabir5ea25592009-11-02 12:00:42 -050037#include <linux/dmi.h>
Matthew Garrett0b3f6102009-01-09 20:17:11 +000038
39MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
40MODULE_DESCRIPTION("Dell laptop WMI hotkeys driver");
41MODULE_LICENSE("GPL");
42
43#define DELL_EVENT_GUID "9DBB5994-A997-11DA-B012-B622A1EF5492"
44
Rezwanul Kabir5ea25592009-11-02 12:00:42 -050045static int acpi_video;
46
Matthew Garrett0b3f6102009-01-09 20:17:11 +000047MODULE_ALIAS("wmi:"DELL_EVENT_GUID);
48
Mario Limonciello5cab0092009-06-10 19:40:47 +000049/*
50 * Certain keys are flagged as KE_IGNORE. All of these are either
51 * notifications (rather than requests for change) or are also sent
52 * via the keyboard controller so should not be sent again.
53 */
Matthew Garrett0b3f6102009-01-09 20:17:11 +000054
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070055static const struct key_entry dell_wmi_legacy_keymap[] __initconst = {
Seth Forsheef1566f02011-08-01 15:46:10 -050056 { KE_IGNORE, 0x003a, { KEY_CAPSLOCK } },
57
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070058 { KE_KEY, 0xe045, { KEY_PROG1 } },
59 { KE_KEY, 0xe009, { KEY_EJECTCD } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000060
61 /* These also contain the brightness level at offset 6 */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070062 { KE_KEY, 0xe006, { KEY_BRIGHTNESSUP } },
63 { KE_KEY, 0xe005, { KEY_BRIGHTNESSDOWN } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000064
65 /* Battery health status button */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070066 { KE_KEY, 0xe007, { KEY_BATTERY } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000067
Gabriele Mazzotta8f8d75e2014-12-04 00:16:21 +010068 /* Radio devices state change */
69 { KE_IGNORE, 0xe008, { KEY_RFKILL } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000070
71 /* The next device is at offset 6, the active devices are at
72 offset 8 and the attached devices at offset 10 */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070073 { KE_KEY, 0xe00b, { KEY_SWITCHVIDEOMODE } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000074
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070075 { KE_IGNORE, 0xe00c, { KEY_KBDILLUMTOGGLE } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000076
77 /* BIOS error detected */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070078 { KE_IGNORE, 0xe00d, { KEY_RESERVED } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000079
80 /* Wifi Catcher */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070081 { KE_KEY, 0xe011, {KEY_PROG2 } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000082
83 /* Ambient light sensor toggle */
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070084 { KE_IGNORE, 0xe013, { KEY_RESERVED } },
Mario Limonciello5cab0092009-06-10 19:40:47 +000085
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070086 { KE_IGNORE, 0xe020, { KEY_MUTE } },
Seth Forsheef1566f02011-08-01 15:46:10 -050087
88 /* Shortcut and audio panel keys */
89 { KE_IGNORE, 0xe025, { KEY_RESERVED } },
90 { KE_IGNORE, 0xe026, { KEY_RESERVED } },
91
Dmitry Torokhov890a7c82010-08-04 22:30:08 -070092 { KE_IGNORE, 0xe02e, { KEY_VOLUMEDOWN } },
93 { KE_IGNORE, 0xe030, { KEY_VOLUMEUP } },
94 { KE_IGNORE, 0xe033, { KEY_KBDILLUMUP } },
95 { KE_IGNORE, 0xe034, { KEY_KBDILLUMDOWN } },
96 { KE_IGNORE, 0xe03a, { KEY_CAPSLOCK } },
97 { KE_IGNORE, 0xe045, { KEY_NUMLOCK } },
98 { KE_IGNORE, 0xe046, { KEY_SCROLLLOCK } },
Seth Forsheef1566f02011-08-01 15:46:10 -050099 { KE_IGNORE, 0xe0f7, { KEY_MUTE } },
100 { KE_IGNORE, 0xe0f8, { KEY_VOLUMEDOWN } },
101 { KE_IGNORE, 0xe0f9, { KEY_VOLUMEUP } },
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700102 { KE_END, 0 }
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000103};
104
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500105static bool dell_new_hk_type;
106
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700107struct dell_bios_keymap_entry {
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500108 u16 scancode;
109 u16 keycode;
110};
111
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700112struct dell_bios_hotkey_table {
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500113 struct dmi_header header;
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700114 struct dell_bios_keymap_entry keymap[];
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500115
116};
117
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700118static const struct dell_bios_hotkey_table *dell_bios_hotkey_table;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500119
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700120static const u16 bios_to_linux_keycode[256] __initconst = {
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500121
122 KEY_MEDIA, KEY_NEXTSONG, KEY_PLAYPAUSE, KEY_PREVIOUSSONG,
123 KEY_STOPCD, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN,
124 KEY_WWW, KEY_UNKNOWN, KEY_VOLUMEDOWN, KEY_MUTE,
125 KEY_VOLUMEUP, KEY_UNKNOWN, KEY_BATTERY, KEY_EJECTCD,
126 KEY_UNKNOWN, KEY_SLEEP, KEY_PROG1, KEY_BRIGHTNESSDOWN,
127 KEY_BRIGHTNESSUP, KEY_UNKNOWN, KEY_KBDILLUMTOGGLE,
128 KEY_UNKNOWN, KEY_SWITCHVIDEOMODE, KEY_UNKNOWN, KEY_UNKNOWN,
129 KEY_SWITCHVIDEOMODE, KEY_UNKNOWN, KEY_UNKNOWN, KEY_PROG2,
Alex Hungcfb743b2013-11-12 11:09:22 +0800130 KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN,
131 KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_MICMUTE,
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500132 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
133 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
134 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
136 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
137 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
138 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
139 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Alex Hungcfb743b2013-11-12 11:09:22 +0800140 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
141 0, 0, 0, 0, 0, 0, 0, 0, 0, KEY_PROG3
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500142};
143
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000144static struct input_dev *dell_wmi_input_dev;
145
Pali Rohár83fc44c2014-11-11 20:21:22 +0100146static void dell_wmi_process_key(int reported_key)
147{
148 const struct key_entry *key;
149
150 key = sparse_keymap_entry_from_scancode(dell_wmi_input_dev,
151 reported_key);
152 if (!key) {
153 pr_info("Unknown key %x pressed\n", reported_key);
154 return;
155 }
156
157 pr_debug("Key %x pressed\n", reported_key);
158
159 /* Don't report brightness notifications that will also come via ACPI */
160 if ((key->keycode == KEY_BRIGHTNESSUP ||
161 key->keycode == KEY_BRIGHTNESSDOWN) && acpi_video)
162 return;
163
164 sparse_keymap_report_entry(dell_wmi_input_dev, key, 1, true);
165}
166
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000167static void dell_wmi_notify(u32 value, void *context)
168{
169 struct acpi_buffer response = { ACPI_ALLOCATE_BUFFER, NULL };
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000170 union acpi_object *obj;
Len Brownfda11e62009-12-26 23:02:24 -0500171 acpi_status status;
Pali Rohár83fc44c2014-11-11 20:21:22 +0100172 acpi_size buffer_size;
173 u16 *buffer_entry, *buffer_end;
174 int len, i;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000175
Len Brownfda11e62009-12-26 23:02:24 -0500176 status = wmi_get_event_data(value, &response);
177 if (status != AE_OK) {
Pali Rohár83fc44c2014-11-11 20:21:22 +0100178 pr_warn("bad event status 0x%x\n", status);
Len Brownfda11e62009-12-26 23:02:24 -0500179 return;
180 }
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000181
182 obj = (union acpi_object *)response.pointer;
Pali Rohár83fc44c2014-11-11 20:21:22 +0100183 if (!obj) {
184 pr_warn("no response\n");
185 return;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000186 }
Pali Rohár83fc44c2014-11-11 20:21:22 +0100187
188 if (obj->type != ACPI_TYPE_BUFFER) {
189 pr_warn("bad response type %x\n", obj->type);
190 kfree(obj);
191 return;
192 }
193
194 pr_debug("Received WMI event (%*ph)\n",
195 obj->buffer.length, obj->buffer.pointer);
196
197 buffer_entry = (u16 *)obj->buffer.pointer;
198 buffer_size = obj->buffer.length/2;
199
200 if (!dell_new_hk_type) {
201 if (buffer_size >= 3 && buffer_entry[1] == 0x0)
202 dell_wmi_process_key(buffer_entry[2]);
203 else if (buffer_size >= 2)
204 dell_wmi_process_key(buffer_entry[1]);
205 else
206 pr_info("Received unknown WMI event\n");
207 kfree(obj);
208 return;
209 }
210
211 buffer_end = buffer_entry + buffer_size;
212
213 while (buffer_entry < buffer_end) {
214
215 len = buffer_entry[0];
216 if (len == 0)
217 break;
218
219 len++;
220
221 if (buffer_entry + len > buffer_end) {
222 pr_warn("Invalid length of WMI event\n");
223 break;
224 }
225
226 pr_debug("Process buffer (%*ph)\n", len*2, buffer_entry);
227
228 switch (buffer_entry[1]) {
229 case 0x00:
230 for (i = 2; i < len; ++i) {
231 switch (buffer_entry[i]) {
232 case 0xe043:
233 /* NIC Link is Up */
234 pr_debug("NIC Link is Up\n");
235 break;
236 case 0xe044:
237 /* NIC Link is Down */
238 pr_debug("NIC Link is Down\n");
239 break;
240 case 0xe045:
241 /* Unknown event but defined in DSDT */
242 default:
243 /* Unknown event */
244 pr_info("Unknown WMI event type 0x00: "
245 "0x%x\n", (int)buffer_entry[i]);
246 break;
247 }
248 }
249 break;
250 case 0x10:
251 /* Keys pressed */
252 for (i = 2; i < len; ++i)
253 dell_wmi_process_key(buffer_entry[i]);
254 break;
255 case 0x11:
256 for (i = 2; i < len; ++i) {
257 switch (buffer_entry[i]) {
258 case 0xfff0:
259 /* Battery unplugged */
260 pr_debug("Battery unplugged\n");
261 break;
262 case 0xfff1:
263 /* Battery inserted */
264 pr_debug("Battery inserted\n");
265 break;
266 case 0x01e1:
267 case 0x02ea:
268 case 0x02eb:
269 case 0x02ec:
270 case 0x02f6:
271 /* Keyboard backlight level changed */
272 pr_debug("Keyboard backlight level "
273 "changed\n");
274 break;
275 default:
276 /* Unknown event */
277 pr_info("Unknown WMI event type 0x11: "
278 "0x%x\n", (int)buffer_entry[i]);
279 break;
280 }
281 }
282 break;
283 default:
284 /* Unknown event */
285 pr_info("Unknown WMI event type 0x%x\n",
286 (int)buffer_entry[1]);
287 break;
288 }
289
290 buffer_entry += len;
291
292 }
293
Anisse Astier3e9b9882009-12-04 10:10:09 +0100294 kfree(obj);
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000295}
296
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700297static const struct key_entry * __init dell_wmi_prepare_new_keymap(void)
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500298{
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700299 int hotkey_num = (dell_bios_hotkey_table->header.length - 4) /
300 sizeof(struct dell_bios_keymap_entry);
301 struct key_entry *keymap;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500302 int i;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500303
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700304 keymap = kcalloc(hotkey_num + 1, sizeof(struct key_entry), GFP_KERNEL);
305 if (!keymap)
306 return NULL;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500307
308 for (i = 0; i < hotkey_num; i++) {
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700309 const struct dell_bios_keymap_entry *bios_entry =
310 &dell_bios_hotkey_table->keymap[i];
Gabriele Mazzotta8cb8e632014-12-04 00:16:23 +0100311 u16 keycode = bios_entry->keycode < 256 ?
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700312 bios_to_linux_keycode[bios_entry->keycode] :
313 KEY_RESERVED;
Gabriele Mazzotta8cb8e632014-12-04 00:16:23 +0100314
315 if (keycode == KEY_KBDILLUMTOGGLE)
316 keymap[i].type = KE_IGNORE;
317 else
318 keymap[i].type = KE_KEY;
319 keymap[i].code = bios_entry->scancode;
320 keymap[i].keycode = keycode;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500321 }
322
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700323 keymap[hotkey_num].type = KE_END;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500324
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700325 return keymap;
Rezwanul Kabir5ea25592009-11-02 12:00:42 -0500326}
327
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000328static int __init dell_wmi_input_setup(void)
329{
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000330 int err;
331
332 dell_wmi_input_dev = input_allocate_device();
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000333 if (!dell_wmi_input_dev)
334 return -ENOMEM;
335
336 dell_wmi_input_dev->name = "Dell WMI hotkeys";
337 dell_wmi_input_dev->phys = "wmi/input0";
338 dell_wmi_input_dev->id.bustype = BUS_HOST;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000339
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700340 if (dell_new_hk_type) {
341 const struct key_entry *keymap = dell_wmi_prepare_new_keymap();
342 if (!keymap) {
343 err = -ENOMEM;
344 goto err_free_dev;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000345 }
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700346
347 err = sparse_keymap_setup(dell_wmi_input_dev, keymap, NULL);
348
349 /*
350 * Sparse keymap library makes a copy of keymap so we
351 * don't need the original one that was allocated.
352 */
353 kfree(keymap);
354 } else {
355 err = sparse_keymap_setup(dell_wmi_input_dev,
356 dell_wmi_legacy_keymap, NULL);
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000357 }
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700358 if (err)
359 goto err_free_dev;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000360
361 err = input_register_device(dell_wmi_input_dev);
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700362 if (err)
363 goto err_free_keymap;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000364
365 return 0;
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700366
367 err_free_keymap:
368 sparse_keymap_free(dell_wmi_input_dev);
369 err_free_dev:
370 input_free_device(dell_wmi_input_dev);
371 return err;
372}
373
374static void dell_wmi_input_destroy(void)
375{
376 sparse_keymap_free(dell_wmi_input_dev);
377 input_unregister_device(dell_wmi_input_dev);
378}
379
380static void __init find_hk_type(const struct dmi_header *dm, void *dummy)
381{
382 if (dm->type == 0xb2 && dm->length > 6) {
383 dell_new_hk_type = true;
384 dell_bios_hotkey_table =
385 container_of(dm, struct dell_bios_hotkey_table, header);
386 }
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000387}
388
389static int __init dell_wmi_init(void)
390{
391 int err;
Len Brownabb631b2009-12-26 21:51:38 -0500392 acpi_status status;
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000393
Dmitry Torokhov7a9568f2009-12-25 11:49:35 -0800394 if (!wmi_has_guid(DELL_EVENT_GUID)) {
Joe Percheseb889522011-03-29 15:21:37 -0700395 pr_warn("No known WMI GUID found\n");
Dmitry Torokhov1fdd4072009-12-17 22:19:42 -0800396 return -ENODEV;
397 }
398
399 dmi_walk(find_hk_type, NULL);
400 acpi_video = acpi_video_backlight_support();
401
402 err = dell_wmi_input_setup();
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700403 if (err)
Dmitry Torokhov1fdd4072009-12-17 22:19:42 -0800404 return err;
405
Len Brownabb631b2009-12-26 21:51:38 -0500406 status = wmi_install_notify_handler(DELL_EVENT_GUID,
Dmitry Torokhov1fdd4072009-12-17 22:19:42 -0800407 dell_wmi_notify, NULL);
Len Brownabb631b2009-12-26 21:51:38 -0500408 if (ACPI_FAILURE(status)) {
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700409 dell_wmi_input_destroy();
Joe Percheseb889522011-03-29 15:21:37 -0700410 pr_err("Unable to register notify handler - %d\n", status);
Len Brownabb631b2009-12-26 21:51:38 -0500411 return -ENODEV;
Dmitry Torokhov1fdd4072009-12-17 22:19:42 -0800412 }
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000413
414 return 0;
415}
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700416module_init(dell_wmi_init);
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000417
418static void __exit dell_wmi_exit(void)
419{
Dmitry Torokhov1fdd4072009-12-17 22:19:42 -0800420 wmi_remove_notify_handler(DELL_EVENT_GUID);
Dmitry Torokhov890a7c82010-08-04 22:30:08 -0700421 dell_wmi_input_destroy();
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000422}
Matthew Garrett0b3f6102009-01-09 20:17:11 +0000423module_exit(dell_wmi_exit);