2 * Copyright (c) 2016 Masaki Ota <masaki.ota@jp.alps.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
10 #include <linux/kernel.h>
11 #include <linux/hid.h>
12 #include <linux/input.h>
13 #include <linux/input/mt.h>
14 #include <linux/module.h>
15 #include <asm/unaligned.h>
18 /* ALPS Device Product ID */
19 #define HID_PRODUCT_ID_T3_BTNLESS 0xD0C0
20 #define HID_PRODUCT_ID_COSMO 0x1202
21 #define HID_PRODUCT_ID_U1_PTP_1 0x1207
22 #define HID_PRODUCT_ID_U1 0x1209
23 #define HID_PRODUCT_ID_U1_PTP_2 0x120A
24 #define HID_PRODUCT_ID_U1_DUAL 0x120B
25 #define HID_PRODUCT_ID_T4_BTNLESS 0x120C
27 #define DEV_SINGLEPOINT 0x01
28 #define DEV_DUALPOINT 0x02
30 #define U1_MOUSE_REPORT_ID 0x01 /* Mouse data ReportID */
31 #define U1_ABSOLUTE_REPORT_ID 0x03 /* Absolute data ReportID */
32 #define U1_ABSOLUTE_REPORT_ID_SECD 0x02 /* FW-PTP Absolute data ReportID */
33 #define U1_FEATURE_REPORT_ID 0x05 /* Feature ReportID */
34 #define U1_SP_ABSOLUTE_REPORT_ID 0x06 /* Feature ReportID */
36 #define U1_FEATURE_REPORT_LEN 0x08 /* Feature Report Length */
37 #define U1_FEATURE_REPORT_LEN_ALL 0x0A
38 #define U1_CMD_REGISTER_READ 0xD1
39 #define U1_CMD_REGISTER_WRITE 0xD2
41 #define U1_DEVTYPE_SP_SUPPORT 0x10 /* SP Support */
42 #define U1_DISABLE_DEV 0x01
43 #define U1_TP_ABS_MODE 0x02
44 #define U1_SP_ABS_MODE 0x80
46 #define ADDRESS_U1_DEV_CTRL_1 0x00800040
47 #define ADDRESS_U1_DEVICE_TYP 0x00800043
48 #define ADDRESS_U1_NUM_SENS_X 0x00800047
49 #define ADDRESS_U1_NUM_SENS_Y 0x00800048
50 #define ADDRESS_U1_PITCH_SENS_X 0x00800049
51 #define ADDRESS_U1_PITCH_SENS_Y 0x0080004A
52 #define ADDRESS_U1_RESO_DWN_ABS 0x0080004E
53 #define ADDRESS_U1_PAD_BTN 0x00800052
54 #define ADDRESS_U1_SP_BTN 0x0080009F
56 #define T4_INPUT_REPORT_LEN sizeof(struct t4_input_report)
57 #define T4_FEATURE_REPORT_LEN T4_INPUT_REPORT_LEN
58 #define T4_FEATURE_REPORT_ID 7
59 #define T4_CMD_REGISTER_READ 0x08
60 #define T4_CMD_REGISTER_WRITE 0x07
62 #define T4_ADDRESS_BASE 0xC2C0
63 #define PRM_SYS_CONFIG_1 (T4_ADDRESS_BASE + 0x0002)
64 #define T4_PRM_FEED_CONFIG_1 (T4_ADDRESS_BASE + 0x0004)
65 #define T4_PRM_FEED_CONFIG_4 (T4_ADDRESS_BASE + 0x001A)
66 #define T4_PRM_ID_CONFIG_3 (T4_ADDRESS_BASE + 0x00B0)
69 #define T4_FEEDCFG4_ADVANCED_ABS_ENABLE 0x01
70 #define T4_I2C_ABS 0x78
72 #define T4_COUNT_PER_ELECTRODE 256
83 * @input: pointer to the kernel input device
84 * @input2: pointer to the kernel input2 device
85 * @hdev: pointer to the struct hid_device
87 * @dev_type: device type
88 * @max_fingers: total number of fingers
89 * @has_sp: boolean of sp existense
90 * @sp_btn_info: button information
91 * @x_active_len_mm: active area length of X (mm)
92 * @y_active_len_mm: active area length of Y (mm)
93 * @x_max: maximum x coordinate value
94 * @y_max: maximum y coordinate value
95 * @x_min: minimum x coordinate value
96 * @y_min: minimum y coordinate value
97 * @btn_cnt: number of buttons
98 * @sp_btn_cnt: number of stick buttons
101 struct input_dev *input;
102 struct input_dev *input2;
103 struct hid_device *hdev;
105 enum dev_num dev_type;
119 struct t4_contact_data {
127 struct t4_input_report {
130 struct t4_contact_data contact[5];
139 static u16 t4_calc_check_sum(u8 *buffer,
140 unsigned long offset, unsigned long length)
142 u16 sum1 = 0xFF, sum2 = 0xFF;
145 if (offset + length >= 50)
149 u32 tlen = length > 20 ? 20 : length;
154 sum1 += buffer[offset + i];
157 } while (--tlen > 0);
159 sum1 = (sum1 & 0xFF) + (sum1 >> 8);
160 sum2 = (sum2 & 0xFF) + (sum2 >> 8);
163 sum1 = (sum1 & 0xFF) + (sum1 >> 8);
164 sum2 = (sum2 & 0xFF) + (sum2 >> 8);
166 return(sum2 << 8 | sum1);
169 static int t4_read_write_register(struct hid_device *hdev, u32 address,
170 u8 *read_val, u8 write_val, bool read_flag)
177 input = kzalloc(T4_FEATURE_REPORT_LEN, GFP_KERNEL);
181 input[0] = T4_FEATURE_REPORT_ID;
183 input[1] = T4_CMD_REGISTER_READ;
186 input[1] = T4_CMD_REGISTER_WRITE;
187 input[8] = write_val;
189 put_unaligned_le32(address, input + 2);
193 /* Calculate the checksum */
194 check_sum = t4_calc_check_sum(input, 1, 8);
195 input[9] = (u8)check_sum;
196 input[10] = (u8)(check_sum >> 8);
199 ret = hid_hw_raw_request(hdev, T4_FEATURE_REPORT_ID, input,
200 T4_FEATURE_REPORT_LEN,
201 HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
204 dev_err(&hdev->dev, "failed to read command (%d)\n", ret);
209 readbuf = kzalloc(T4_FEATURE_REPORT_LEN, GFP_KERNEL);
215 ret = hid_hw_raw_request(hdev, T4_FEATURE_REPORT_ID, readbuf,
216 T4_FEATURE_REPORT_LEN,
217 HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
219 dev_err(&hdev->dev, "failed read register (%d)\n", ret);
225 if (*(u32 *)&readbuf[6] != address) {
226 dev_err(&hdev->dev, "read register address error (%x,%x)\n",
227 *(u32 *)&readbuf[6], address);
231 if (*(u16 *)&readbuf[10] != 1) {
232 dev_err(&hdev->dev, "read register size error (%x)\n",
233 *(u16 *)&readbuf[10]);
237 check_sum = t4_calc_check_sum(readbuf, 6, 7);
238 if (*(u16 *)&readbuf[13] != check_sum) {
239 dev_err(&hdev->dev, "read register checksum error (%x,%x)\n",
240 *(u16 *)&readbuf[13], check_sum);
244 *read_val = readbuf[12];
256 static int u1_read_write_register(struct hid_device *hdev, u32 address,
257 u8 *read_val, u8 write_val, bool read_flag)
264 input = kzalloc(U1_FEATURE_REPORT_LEN, GFP_KERNEL);
268 input[0] = U1_FEATURE_REPORT_ID;
270 input[1] = U1_CMD_REGISTER_READ;
273 input[1] = U1_CMD_REGISTER_WRITE;
274 input[6] = write_val;
277 put_unaligned_le32(address, input + 2);
279 /* Calculate the checksum */
280 check_sum = U1_FEATURE_REPORT_LEN_ALL;
281 for (i = 0; i < U1_FEATURE_REPORT_LEN - 1; i++)
282 check_sum += input[i];
284 input[7] = check_sum;
285 ret = hid_hw_raw_request(hdev, U1_FEATURE_REPORT_ID, input,
286 U1_FEATURE_REPORT_LEN,
287 HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
290 dev_err(&hdev->dev, "failed to read command (%d)\n", ret);
295 readbuf = kzalloc(U1_FEATURE_REPORT_LEN, GFP_KERNEL);
301 ret = hid_hw_raw_request(hdev, U1_FEATURE_REPORT_ID, readbuf,
302 U1_FEATURE_REPORT_LEN,
303 HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
306 dev_err(&hdev->dev, "failed read register (%d)\n", ret);
311 *read_val = readbuf[6];
323 static int t4_raw_event(struct alps_dev *hdata, u8 *data, int size)
325 unsigned int x, y, z;
327 struct t4_input_report *p_report = (struct t4_input_report *)data;
331 for (i = 0; i < hdata->max_fingers; i++) {
332 x = p_report->contact[i].x_hi << 8 | p_report->contact[i].x_lo;
333 y = p_report->contact[i].y_hi << 8 | p_report->contact[i].y_lo;
334 y = hdata->y_max - y + hdata->y_min;
335 z = (p_report->contact[i].palm < 0x80 &&
336 p_report->contact[i].palm > 0) * 62;
342 input_mt_slot(hdata->input, i);
344 input_mt_report_slot_state(hdata->input,
345 MT_TOOL_FINGER, z != 0);
350 input_report_abs(hdata->input, ABS_MT_POSITION_X, x);
351 input_report_abs(hdata->input, ABS_MT_POSITION_Y, y);
352 input_report_abs(hdata->input, ABS_MT_PRESSURE, z);
354 input_mt_sync_frame(hdata->input);
356 input_report_key(hdata->input, BTN_LEFT, p_report->button);
358 input_sync(hdata->input);
362 static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size)
364 unsigned int x, y, z;
371 case U1_MOUSE_REPORT_ID:
373 case U1_FEATURE_REPORT_ID:
375 case U1_ABSOLUTE_REPORT_ID:
376 case U1_ABSOLUTE_REPORT_ID_SECD:
377 for (i = 0; i < hdata->max_fingers; i++) {
378 u8 *contact = &data[i * 5];
380 x = get_unaligned_le16(contact + 3);
381 y = get_unaligned_le16(contact + 5);
382 z = contact[7] & 0x7F;
384 input_mt_slot(hdata->input, i);
387 input_mt_report_slot_state(hdata->input,
389 input_report_abs(hdata->input,
390 ABS_MT_POSITION_X, x);
391 input_report_abs(hdata->input,
392 ABS_MT_POSITION_Y, y);
393 input_report_abs(hdata->input,
396 input_mt_report_slot_state(hdata->input,
401 input_mt_sync_frame(hdata->input);
403 input_report_key(hdata->input, BTN_LEFT,
405 input_report_key(hdata->input, BTN_RIGHT,
407 input_report_key(hdata->input, BTN_MIDDLE,
410 input_sync(hdata->input);
414 case U1_SP_ABSOLUTE_REPORT_ID:
415 sp_x = get_unaligned_le16(data+2);
416 sp_y = get_unaligned_le16(data+4);
421 input_report_rel(hdata->input2, REL_X, sp_x);
422 input_report_rel(hdata->input2, REL_Y, sp_y);
424 input_report_key(hdata->input2, BTN_LEFT,
426 input_report_key(hdata->input2, BTN_RIGHT,
428 input_report_key(hdata->input2, BTN_MIDDLE,
431 input_sync(hdata->input2);
439 static int alps_raw_event(struct hid_device *hdev,
440 struct hid_report *report, u8 *data, int size)
443 struct alps_dev *hdata = hid_get_drvdata(hdev);
445 switch (hdev->product) {
446 case HID_PRODUCT_ID_T4_BTNLESS:
447 ret = t4_raw_event(hdata, data, size);
450 ret = u1_raw_event(hdata, data, size);
456 static int __maybe_unused alps_post_reset(struct hid_device *hdev)
459 struct alps_dev *data = hid_get_drvdata(hdev);
461 switch (data->dev_type) {
463 ret = t4_read_write_register(hdev, T4_PRM_FEED_CONFIG_1,
464 NULL, T4_I2C_ABS, false);
466 dev_err(&hdev->dev, "failed T4_PRM_FEED_CONFIG_1 (%d)\n",
471 ret = t4_read_write_register(hdev, T4_PRM_FEED_CONFIG_4,
472 NULL, T4_FEEDCFG4_ADVANCED_ABS_ENABLE, false);
474 dev_err(&hdev->dev, "failed T4_PRM_FEED_CONFIG_4 (%d)\n",
480 ret = u1_read_write_register(hdev,
481 ADDRESS_U1_DEV_CTRL_1, NULL,
482 U1_TP_ABS_MODE | U1_SP_ABS_MODE, false);
484 dev_err(&hdev->dev, "failed to change TP mode (%d)\n",
497 static int __maybe_unused alps_post_resume(struct hid_device *hdev)
499 return alps_post_reset(hdev);
502 static int u1_init(struct hid_device *hdev, struct alps_dev *pri_data)
505 u8 tmp, dev_ctrl, sen_line_num_x, sen_line_num_y;
506 u8 pitch_x, pitch_y, resolution;
508 /* Device initialization */
509 ret = u1_read_write_register(hdev, ADDRESS_U1_DEV_CTRL_1,
512 dev_err(&hdev->dev, "failed U1_DEV_CTRL_1 (%d)\n", ret);
516 dev_ctrl &= ~U1_DISABLE_DEV;
517 dev_ctrl |= U1_TP_ABS_MODE;
518 ret = u1_read_write_register(hdev, ADDRESS_U1_DEV_CTRL_1,
519 NULL, dev_ctrl, false);
521 dev_err(&hdev->dev, "failed to change TP mode (%d)\n", ret);
525 ret = u1_read_write_register(hdev, ADDRESS_U1_NUM_SENS_X,
526 &sen_line_num_x, 0, true);
528 dev_err(&hdev->dev, "failed U1_NUM_SENS_X (%d)\n", ret);
532 ret = u1_read_write_register(hdev, ADDRESS_U1_NUM_SENS_Y,
533 &sen_line_num_y, 0, true);
535 dev_err(&hdev->dev, "failed U1_NUM_SENS_Y (%d)\n", ret);
539 ret = u1_read_write_register(hdev, ADDRESS_U1_PITCH_SENS_X,
542 dev_err(&hdev->dev, "failed U1_PITCH_SENS_X (%d)\n", ret);
546 ret = u1_read_write_register(hdev, ADDRESS_U1_PITCH_SENS_Y,
549 dev_err(&hdev->dev, "failed U1_PITCH_SENS_Y (%d)\n", ret);
553 ret = u1_read_write_register(hdev, ADDRESS_U1_RESO_DWN_ABS,
554 &resolution, 0, true);
556 dev_err(&hdev->dev, "failed U1_RESO_DWN_ABS (%d)\n", ret);
559 pri_data->x_active_len_mm =
560 (pitch_x * (sen_line_num_x - 1)) / 10;
561 pri_data->y_active_len_mm =
562 (pitch_y * (sen_line_num_y - 1)) / 10;
565 (resolution << 2) * (sen_line_num_x - 1);
568 (resolution << 2) * (sen_line_num_y - 1);
571 ret = u1_read_write_register(hdev, ADDRESS_U1_PAD_BTN,
574 dev_err(&hdev->dev, "failed U1_PAD_BTN (%d)\n", ret);
577 if ((tmp & 0x0F) == (tmp & 0xF0) >> 4) {
578 pri_data->btn_cnt = (tmp & 0x0F);
581 pri_data->btn_cnt = 1;
584 pri_data->has_sp = 0;
585 /* Check StickPointer device */
586 ret = u1_read_write_register(hdev, ADDRESS_U1_DEVICE_TYP,
589 dev_err(&hdev->dev, "failed U1_DEVICE_TYP (%d)\n", ret);
592 if (tmp & U1_DEVTYPE_SP_SUPPORT) {
593 dev_ctrl |= U1_SP_ABS_MODE;
594 ret = u1_read_write_register(hdev, ADDRESS_U1_DEV_CTRL_1,
595 NULL, dev_ctrl, false);
597 dev_err(&hdev->dev, "failed SP mode (%d)\n", ret);
601 ret = u1_read_write_register(hdev, ADDRESS_U1_SP_BTN,
602 &pri_data->sp_btn_info, 0, true);
604 dev_err(&hdev->dev, "failed U1_SP_BTN (%d)\n", ret);
607 pri_data->has_sp = 1;
609 pri_data->max_fingers = 5;
614 static int T4_init(struct hid_device *hdev, struct alps_dev *pri_data)
617 u8 tmp, sen_line_num_x, sen_line_num_y;
619 ret = t4_read_write_register(hdev, T4_PRM_ID_CONFIG_3, &tmp, 0, true);
621 dev_err(&hdev->dev, "failed T4_PRM_ID_CONFIG_3 (%d)\n", ret);
624 sen_line_num_x = 16 + ((tmp & 0x0F) | (tmp & 0x08 ? 0xF0 : 0));
625 sen_line_num_y = 12 + (((tmp & 0xF0) >> 4) | (tmp & 0x80 ? 0xF0 : 0));
627 pri_data->x_max = sen_line_num_x * T4_COUNT_PER_ELECTRODE;
628 pri_data->x_min = T4_COUNT_PER_ELECTRODE;
629 pri_data->y_max = sen_line_num_y * T4_COUNT_PER_ELECTRODE;
630 pri_data->y_min = T4_COUNT_PER_ELECTRODE;
631 pri_data->x_active_len_mm = pri_data->y_active_len_mm = 0;
632 pri_data->btn_cnt = 1;
634 ret = t4_read_write_register(hdev, PRM_SYS_CONFIG_1, &tmp, 0, true);
636 dev_err(&hdev->dev, "failed PRM_SYS_CONFIG_1 (%d)\n", ret);
640 ret = t4_read_write_register(hdev, PRM_SYS_CONFIG_1, NULL, tmp, false);
642 dev_err(&hdev->dev, "failed PRM_SYS_CONFIG_1 (%d)\n", ret);
646 ret = t4_read_write_register(hdev, T4_PRM_FEED_CONFIG_1,
647 NULL, T4_I2C_ABS, false);
649 dev_err(&hdev->dev, "failed T4_PRM_FEED_CONFIG_1 (%d)\n", ret);
653 ret = t4_read_write_register(hdev, T4_PRM_FEED_CONFIG_4, NULL,
654 T4_FEEDCFG4_ADVANCED_ABS_ENABLE, false);
656 dev_err(&hdev->dev, "failed T4_PRM_FEED_CONFIG_4 (%d)\n", ret);
659 pri_data->max_fingers = 5;
660 pri_data->has_sp = 0;
665 static int alps_sp_open(struct input_dev *dev)
667 struct hid_device *hid = input_get_drvdata(dev);
669 return hid_hw_open(hid);
672 static void alps_sp_close(struct input_dev *dev)
674 struct hid_device *hid = input_get_drvdata(dev);
679 static int alps_input_configured(struct hid_device *hdev, struct hid_input *hi)
681 struct alps_dev *data = hid_get_drvdata(hdev);
682 struct input_dev *input = hi->input, *input2;
688 hid_dbg(hdev, "Opening low level driver\n");
689 ret = hid_hw_open(hdev);
693 /* Allow incoming hid reports */
694 hid_device_io_start(hdev);
695 switch (data->dev_type) {
697 ret = T4_init(hdev, data);
700 ret = u1_init(hdev, data);
709 __set_bit(EV_ABS, input->evbit);
710 input_set_abs_params(input, ABS_MT_POSITION_X,
711 data->x_min, data->x_max, 0, 0);
712 input_set_abs_params(input, ABS_MT_POSITION_Y,
713 data->y_min, data->y_max, 0, 0);
715 if (data->x_active_len_mm && data->y_active_len_mm) {
716 res_x = (data->x_max - 1) / data->x_active_len_mm;
717 res_y = (data->y_max - 1) / data->y_active_len_mm;
719 input_abs_set_res(input, ABS_MT_POSITION_X, res_x);
720 input_abs_set_res(input, ABS_MT_POSITION_Y, res_y);
723 input_set_abs_params(input, ABS_MT_PRESSURE, 0, 64, 0, 0);
725 input_mt_init_slots(input, data->max_fingers, INPUT_MT_POINTER);
727 __set_bit(EV_KEY, input->evbit);
729 if (data->btn_cnt == 1)
730 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
732 for (i = 0; i < data->btn_cnt; i++)
733 __set_bit(BTN_LEFT + i, input->keybit);
735 /* Stick device initialization */
737 input2 = input_allocate_device();
743 data->input2 = input2;
744 input2->phys = input->phys;
745 input2->name = "DualPoint Stick";
746 input2->id.bustype = BUS_I2C;
747 input2->id.vendor = input->id.vendor;
748 input2->id.product = input->id.product;
749 input2->id.version = input->id.version;
750 input2->dev.parent = input->dev.parent;
752 input_set_drvdata(input2, hdev);
753 input2->open = alps_sp_open;
754 input2->close = alps_sp_close;
756 __set_bit(EV_KEY, input2->evbit);
757 data->sp_btn_cnt = (data->sp_btn_info & 0x0F);
758 for (i = 0; i < data->sp_btn_cnt; i++)
759 __set_bit(BTN_LEFT + i, input2->keybit);
761 __set_bit(EV_REL, input2->evbit);
762 __set_bit(REL_X, input2->relbit);
763 __set_bit(REL_Y, input2->relbit);
764 __set_bit(INPUT_PROP_POINTER, input2->propbit);
765 __set_bit(INPUT_PROP_POINTING_STICK, input2->propbit);
767 if (input_register_device(data->input2)) {
768 input_free_device(input2);
775 hid_device_io_stop(hdev);
780 static int alps_input_mapping(struct hid_device *hdev,
781 struct hid_input *hi, struct hid_field *field,
782 struct hid_usage *usage, unsigned long **bit, int *max)
787 static int alps_probe(struct hid_device *hdev, const struct hid_device_id *id)
789 struct alps_dev *data = NULL;
791 data = devm_kzalloc(&hdev->dev, sizeof(struct alps_dev), GFP_KERNEL);
796 hid_set_drvdata(hdev, data);
798 hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
800 ret = hid_parse(hdev);
802 hid_err(hdev, "parse failed\n");
806 switch (hdev->product) {
807 case HID_DEVICE_ID_ALPS_T4_BTNLESS:
810 case HID_DEVICE_ID_ALPS_U1_DUAL:
811 case HID_DEVICE_ID_ALPS_U1:
812 case HID_DEVICE_ID_ALPS_U1_UNICORN_LEGACY:
816 data->dev_type = UNKNOWN;
819 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
821 hid_err(hdev, "hw start failed\n");
828 static void alps_remove(struct hid_device *hdev)
833 static const struct hid_device_id alps_id[] = {
834 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY,
835 USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1_DUAL) },
836 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY,
837 USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1) },
838 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY,
839 USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1_UNICORN_LEGACY) },
840 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY,
841 USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_T4_BTNLESS) },
844 MODULE_DEVICE_TABLE(hid, alps_id);
846 static struct hid_driver alps_driver = {
850 .remove = alps_remove,
851 .raw_event = alps_raw_event,
852 .input_mapping = alps_input_mapping,
853 .input_configured = alps_input_configured,
855 .resume = alps_post_resume,
856 .reset_resume = alps_post_reset,
860 module_hid_driver(alps_driver);
862 MODULE_AUTHOR("Masaki Ota <masaki.ota@jp.alps.com>");
863 MODULE_DESCRIPTION("ALPS HID driver");
864 MODULE_LICENSE("GPL");