1ff0c13d6SNikolai Kondrashov // SPDX-License-Identifier: GPL-2.0+ 2ff0c13d6SNikolai Kondrashov /* 3ff0c13d6SNikolai Kondrashov * HID driver for UC-Logic devices not fully compliant with HID standard 4ff0c13d6SNikolai Kondrashov * 5ff0c13d6SNikolai Kondrashov * Copyright (c) 2010-2014 Nikolai Kondrashov 6ff0c13d6SNikolai Kondrashov * Copyright (c) 2013 Martin Rusko 7ff0c13d6SNikolai Kondrashov */ 8ff0c13d6SNikolai Kondrashov 9ff0c13d6SNikolai Kondrashov /* 10ff0c13d6SNikolai Kondrashov * This program is free software; you can redistribute it and/or modify it 11ff0c13d6SNikolai Kondrashov * under the terms of the GNU General Public License as published by the Free 12ff0c13d6SNikolai Kondrashov * Software Foundation; either version 2 of the License, or (at your option) 13ff0c13d6SNikolai Kondrashov * any later version. 14ff0c13d6SNikolai Kondrashov */ 15ff0c13d6SNikolai Kondrashov 16ff0c13d6SNikolai Kondrashov #include <linux/device.h> 17ff0c13d6SNikolai Kondrashov #include <linux/hid.h> 18ff0c13d6SNikolai Kondrashov #include <linux/module.h> 19*01309e29SNikolai Kondrashov #include <linux/timer.h> 20ff0c13d6SNikolai Kondrashov #include "usbhid/usbhid.h" 219614219eSNikolai Kondrashov #include "hid-uclogic-params.h" 22ff0c13d6SNikolai Kondrashov 23ff0c13d6SNikolai Kondrashov #include "hid-ids.h" 24ff0c13d6SNikolai Kondrashov 25ff0c13d6SNikolai Kondrashov /* Driver data */ 26ff0c13d6SNikolai Kondrashov struct uclogic_drvdata { 279614219eSNikolai Kondrashov /* Interface parameters */ 289614219eSNikolai Kondrashov struct uclogic_params params; 299614219eSNikolai Kondrashov /* Pointer to the replacement report descriptor. NULL if none. */ 309614219eSNikolai Kondrashov __u8 *desc_ptr; 319614219eSNikolai Kondrashov /* 329614219eSNikolai Kondrashov * Size of the replacement report descriptor. 339614219eSNikolai Kondrashov * Only valid if desc_ptr is not NULL 349614219eSNikolai Kondrashov */ 359614219eSNikolai Kondrashov unsigned int desc_size; 36*01309e29SNikolai Kondrashov /* Pen input device */ 37*01309e29SNikolai Kondrashov struct input_dev *pen_input; 38*01309e29SNikolai Kondrashov /* In-range timer */ 39*01309e29SNikolai Kondrashov struct timer_list inrange_timer; 40ff0c13d6SNikolai Kondrashov }; 41ff0c13d6SNikolai Kondrashov 42*01309e29SNikolai Kondrashov /** 43*01309e29SNikolai Kondrashov * uclogic_inrange_timeout - handle pen in-range state timeout. 44*01309e29SNikolai Kondrashov * Emulate input events normally generated when pen goes out of range for 45*01309e29SNikolai Kondrashov * tablets which don't report that. 46*01309e29SNikolai Kondrashov * 47*01309e29SNikolai Kondrashov * @t: The timer the timeout handler is attached to, stored in a struct 48*01309e29SNikolai Kondrashov * uclogic_drvdata. 49*01309e29SNikolai Kondrashov */ 50*01309e29SNikolai Kondrashov static void uclogic_inrange_timeout(struct timer_list *t) 51*01309e29SNikolai Kondrashov { 52*01309e29SNikolai Kondrashov struct uclogic_drvdata *drvdata = from_timer(drvdata, t, 53*01309e29SNikolai Kondrashov inrange_timer); 54*01309e29SNikolai Kondrashov struct input_dev *input = drvdata->pen_input; 55*01309e29SNikolai Kondrashov 56*01309e29SNikolai Kondrashov if (input == NULL) 57*01309e29SNikolai Kondrashov return; 58*01309e29SNikolai Kondrashov input_report_abs(input, ABS_PRESSURE, 0); 59*01309e29SNikolai Kondrashov /* If BTN_TOUCH state is changing */ 60*01309e29SNikolai Kondrashov if (test_bit(BTN_TOUCH, input->key)) { 61*01309e29SNikolai Kondrashov input_event(input, EV_MSC, MSC_SCAN, 62*01309e29SNikolai Kondrashov /* Digitizer Tip Switch usage */ 63*01309e29SNikolai Kondrashov 0xd0042); 64*01309e29SNikolai Kondrashov input_report_key(input, BTN_TOUCH, 0); 65*01309e29SNikolai Kondrashov } 66*01309e29SNikolai Kondrashov input_report_key(input, BTN_TOOL_PEN, 0); 67*01309e29SNikolai Kondrashov input_sync(input); 68*01309e29SNikolai Kondrashov } 69*01309e29SNikolai Kondrashov 70ff0c13d6SNikolai Kondrashov static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, 71ff0c13d6SNikolai Kondrashov unsigned int *rsize) 72ff0c13d6SNikolai Kondrashov { 73ff0c13d6SNikolai Kondrashov struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); 74ff0c13d6SNikolai Kondrashov 759614219eSNikolai Kondrashov if (drvdata->desc_ptr != NULL) { 769614219eSNikolai Kondrashov rdesc = drvdata->desc_ptr; 779614219eSNikolai Kondrashov *rsize = drvdata->desc_size; 789614219eSNikolai Kondrashov } 79ff0c13d6SNikolai Kondrashov return rdesc; 80ff0c13d6SNikolai Kondrashov } 81ff0c13d6SNikolai Kondrashov 829614219eSNikolai Kondrashov static int uclogic_input_mapping(struct hid_device *hdev, 839614219eSNikolai Kondrashov struct hid_input *hi, 849614219eSNikolai Kondrashov struct hid_field *field, 859614219eSNikolai Kondrashov struct hid_usage *usage, 869614219eSNikolai Kondrashov unsigned long **bit, 879614219eSNikolai Kondrashov int *max) 88ff0c13d6SNikolai Kondrashov { 89ff0c13d6SNikolai Kondrashov struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); 909614219eSNikolai Kondrashov struct uclogic_params *params = &drvdata->params; 91ff0c13d6SNikolai Kondrashov 92ff0c13d6SNikolai Kondrashov /* discard the unused pen interface */ 939614219eSNikolai Kondrashov if (params->pen_unused && (field->application == HID_DG_PEN)) 94ff0c13d6SNikolai Kondrashov return -1; 95ff0c13d6SNikolai Kondrashov 96ff0c13d6SNikolai Kondrashov /* let hid-core decide what to do */ 97ff0c13d6SNikolai Kondrashov return 0; 98ff0c13d6SNikolai Kondrashov } 99ff0c13d6SNikolai Kondrashov 100ff0c13d6SNikolai Kondrashov static int uclogic_input_configured(struct hid_device *hdev, 101ff0c13d6SNikolai Kondrashov struct hid_input *hi) 102ff0c13d6SNikolai Kondrashov { 103*01309e29SNikolai Kondrashov struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); 104*01309e29SNikolai Kondrashov struct uclogic_params *params = &drvdata->params; 105ff0c13d6SNikolai Kondrashov char *name; 106ff0c13d6SNikolai Kondrashov const char *suffix = NULL; 107ff0c13d6SNikolai Kondrashov struct hid_field *field; 108ff0c13d6SNikolai Kondrashov size_t len; 109ff0c13d6SNikolai Kondrashov 110ff0c13d6SNikolai Kondrashov /* no report associated (HID_QUIRK_MULTI_INPUT not set) */ 111ff0c13d6SNikolai Kondrashov if (!hi->report) 112ff0c13d6SNikolai Kondrashov return 0; 113ff0c13d6SNikolai Kondrashov 114*01309e29SNikolai Kondrashov /* 115*01309e29SNikolai Kondrashov * If this is the input corresponding to the pen report 116*01309e29SNikolai Kondrashov * in need of tweaking. 117*01309e29SNikolai Kondrashov */ 118*01309e29SNikolai Kondrashov if (hi->report->id == params->pen.id) { 119*01309e29SNikolai Kondrashov /* Remember the input device so we can simulate events */ 120*01309e29SNikolai Kondrashov drvdata->pen_input = hi->input; 121*01309e29SNikolai Kondrashov } 122*01309e29SNikolai Kondrashov 123ff0c13d6SNikolai Kondrashov field = hi->report->field[0]; 124ff0c13d6SNikolai Kondrashov 125ff0c13d6SNikolai Kondrashov switch (field->application) { 126ff0c13d6SNikolai Kondrashov case HID_GD_KEYBOARD: 127ff0c13d6SNikolai Kondrashov suffix = "Keyboard"; 128ff0c13d6SNikolai Kondrashov break; 129ff0c13d6SNikolai Kondrashov case HID_GD_MOUSE: 130ff0c13d6SNikolai Kondrashov suffix = "Mouse"; 131ff0c13d6SNikolai Kondrashov break; 132ff0c13d6SNikolai Kondrashov case HID_GD_KEYPAD: 133ff0c13d6SNikolai Kondrashov suffix = "Pad"; 134ff0c13d6SNikolai Kondrashov break; 135ff0c13d6SNikolai Kondrashov case HID_DG_PEN: 136ff0c13d6SNikolai Kondrashov suffix = "Pen"; 137ff0c13d6SNikolai Kondrashov break; 138ff0c13d6SNikolai Kondrashov case HID_CP_CONSUMER_CONTROL: 139ff0c13d6SNikolai Kondrashov suffix = "Consumer Control"; 140ff0c13d6SNikolai Kondrashov break; 141ff0c13d6SNikolai Kondrashov case HID_GD_SYSTEM_CONTROL: 142ff0c13d6SNikolai Kondrashov suffix = "System Control"; 143ff0c13d6SNikolai Kondrashov break; 144ff0c13d6SNikolai Kondrashov } 145ff0c13d6SNikolai Kondrashov 146ff0c13d6SNikolai Kondrashov if (suffix) { 147ff0c13d6SNikolai Kondrashov len = strlen(hdev->name) + 2 + strlen(suffix); 148ff0c13d6SNikolai Kondrashov name = devm_kzalloc(&hi->input->dev, len, GFP_KERNEL); 149ff0c13d6SNikolai Kondrashov if (name) { 150ff0c13d6SNikolai Kondrashov snprintf(name, len, "%s %s", hdev->name, suffix); 151ff0c13d6SNikolai Kondrashov hi->input->name = name; 152ff0c13d6SNikolai Kondrashov } 153ff0c13d6SNikolai Kondrashov } 154ff0c13d6SNikolai Kondrashov 155ff0c13d6SNikolai Kondrashov return 0; 156ff0c13d6SNikolai Kondrashov } 157ff0c13d6SNikolai Kondrashov 158ff0c13d6SNikolai Kondrashov static int uclogic_probe(struct hid_device *hdev, 159ff0c13d6SNikolai Kondrashov const struct hid_device_id *id) 160ff0c13d6SNikolai Kondrashov { 161ff0c13d6SNikolai Kondrashov int rc; 1629614219eSNikolai Kondrashov struct uclogic_drvdata *drvdata = NULL; 1639614219eSNikolai Kondrashov bool params_initialized = false; 164ff0c13d6SNikolai Kondrashov 165ff0c13d6SNikolai Kondrashov /* 166ff0c13d6SNikolai Kondrashov * libinput requires the pad interface to be on a different node 167ff0c13d6SNikolai Kondrashov * than the pen, so use QUIRK_MULTI_INPUT for all tablets. 168ff0c13d6SNikolai Kondrashov */ 169ff0c13d6SNikolai Kondrashov hdev->quirks |= HID_QUIRK_MULTI_INPUT; 170ff0c13d6SNikolai Kondrashov 171ff0c13d6SNikolai Kondrashov /* Allocate and assign driver data */ 172ff0c13d6SNikolai Kondrashov drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); 1739614219eSNikolai Kondrashov if (drvdata == NULL) { 1749614219eSNikolai Kondrashov rc = -ENOMEM; 1759614219eSNikolai Kondrashov goto failure; 1769614219eSNikolai Kondrashov } 177*01309e29SNikolai Kondrashov timer_setup(&drvdata->inrange_timer, uclogic_inrange_timeout, 0); 178ff0c13d6SNikolai Kondrashov hid_set_drvdata(hdev, drvdata); 179ff0c13d6SNikolai Kondrashov 1809614219eSNikolai Kondrashov /* Initialize the device and retrieve interface parameters */ 1819614219eSNikolai Kondrashov rc = uclogic_params_init(&drvdata->params, hdev); 1829614219eSNikolai Kondrashov if (rc != 0) { 1839614219eSNikolai Kondrashov hid_err(hdev, "failed probing parameters: %d\n", rc); 1849614219eSNikolai Kondrashov goto failure; 185ff0c13d6SNikolai Kondrashov } 1869614219eSNikolai Kondrashov params_initialized = true; 1879614219eSNikolai Kondrashov hid_dbg(hdev, "parameters:\n" UCLOGIC_PARAMS_FMT_STR, 1889614219eSNikolai Kondrashov UCLOGIC_PARAMS_FMT_ARGS(&drvdata->params)); 1899614219eSNikolai Kondrashov if (drvdata->params.invalid) { 1909614219eSNikolai Kondrashov hid_info(hdev, "interface is invalid, ignoring\n"); 1919614219eSNikolai Kondrashov rc = -ENODEV; 1929614219eSNikolai Kondrashov goto failure; 1939614219eSNikolai Kondrashov } 194ff0c13d6SNikolai Kondrashov 1959614219eSNikolai Kondrashov /* Generate replacement report descriptor */ 1969614219eSNikolai Kondrashov rc = uclogic_params_get_desc(&drvdata->params, 1979614219eSNikolai Kondrashov &drvdata->desc_ptr, 1989614219eSNikolai Kondrashov &drvdata->desc_size); 199ff0c13d6SNikolai Kondrashov if (rc) { 2009614219eSNikolai Kondrashov hid_err(hdev, 2019614219eSNikolai Kondrashov "failed generating replacement report descriptor: %d\n", 2029614219eSNikolai Kondrashov rc); 2039614219eSNikolai Kondrashov goto failure; 204ff0c13d6SNikolai Kondrashov } 205ff0c13d6SNikolai Kondrashov 206ff0c13d6SNikolai Kondrashov rc = hid_parse(hdev); 207ff0c13d6SNikolai Kondrashov if (rc) { 208ff0c13d6SNikolai Kondrashov hid_err(hdev, "parse failed\n"); 2099614219eSNikolai Kondrashov goto failure; 210ff0c13d6SNikolai Kondrashov } 211ff0c13d6SNikolai Kondrashov 212ff0c13d6SNikolai Kondrashov rc = hid_hw_start(hdev, HID_CONNECT_DEFAULT); 213ff0c13d6SNikolai Kondrashov if (rc) { 214ff0c13d6SNikolai Kondrashov hid_err(hdev, "hw start failed\n"); 2159614219eSNikolai Kondrashov goto failure; 2169614219eSNikolai Kondrashov } 2179614219eSNikolai Kondrashov 2189614219eSNikolai Kondrashov return 0; 2199614219eSNikolai Kondrashov failure: 2209614219eSNikolai Kondrashov /* Assume "remove" might not be called if "probe" failed */ 2219614219eSNikolai Kondrashov if (params_initialized) 2229614219eSNikolai Kondrashov uclogic_params_cleanup(&drvdata->params); 223ff0c13d6SNikolai Kondrashov return rc; 224ff0c13d6SNikolai Kondrashov } 225ff0c13d6SNikolai Kondrashov 226251b4275SNikolai Kondrashov #ifdef CONFIG_PM 227251b4275SNikolai Kondrashov static int uclogic_resume(struct hid_device *hdev) 228251b4275SNikolai Kondrashov { 229251b4275SNikolai Kondrashov int rc; 230251b4275SNikolai Kondrashov struct uclogic_params params; 231251b4275SNikolai Kondrashov 232251b4275SNikolai Kondrashov /* Re-initialize the device, but discard parameters */ 233251b4275SNikolai Kondrashov rc = uclogic_params_init(¶ms, hdev); 234251b4275SNikolai Kondrashov if (rc != 0) 235251b4275SNikolai Kondrashov hid_err(hdev, "failed to re-initialize the device\n"); 236251b4275SNikolai Kondrashov else 237251b4275SNikolai Kondrashov uclogic_params_cleanup(¶ms); 238251b4275SNikolai Kondrashov 239251b4275SNikolai Kondrashov return rc; 240251b4275SNikolai Kondrashov } 241251b4275SNikolai Kondrashov #endif 242251b4275SNikolai Kondrashov 2439614219eSNikolai Kondrashov static int uclogic_raw_event(struct hid_device *hdev, 2449614219eSNikolai Kondrashov struct hid_report *report, 245ff0c13d6SNikolai Kondrashov u8 *data, int size) 246ff0c13d6SNikolai Kondrashov { 247ff0c13d6SNikolai Kondrashov struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); 2489614219eSNikolai Kondrashov struct uclogic_params *params = &drvdata->params; 249ff0c13d6SNikolai Kondrashov 2509614219eSNikolai Kondrashov /* Tweak pen reports, if necessary */ 2519614219eSNikolai Kondrashov if (!params->pen_unused && 2529614219eSNikolai Kondrashov (report->type == HID_INPUT_REPORT) && 2539614219eSNikolai Kondrashov (report->id == params->pen.id) && 254ff0c13d6SNikolai Kondrashov (size >= 2)) { 2559614219eSNikolai Kondrashov /* If it's the "virtual" frame controls report */ 2569614219eSNikolai Kondrashov if (params->frame.id != 0 && 2579614219eSNikolai Kondrashov data[1] & params->pen_frame_flag) { 2589614219eSNikolai Kondrashov /* Change to virtual frame controls report ID */ 2599614219eSNikolai Kondrashov data[0] = params->frame.id; 2609614219eSNikolai Kondrashov return 0; 2619614219eSNikolai Kondrashov } 2629614219eSNikolai Kondrashov /* If in-range reports are inverted */ 2639614219eSNikolai Kondrashov if (params->pen.inrange == 2649614219eSNikolai Kondrashov UCLOGIC_PARAMS_PEN_INRANGE_INVERTED) { 265ff0c13d6SNikolai Kondrashov /* Invert the in-range bit */ 266ff0c13d6SNikolai Kondrashov data[1] ^= 0x40; 267ff0c13d6SNikolai Kondrashov } 268*01309e29SNikolai Kondrashov /* If we need to emulate in-range detection */ 269*01309e29SNikolai Kondrashov if (params->pen.inrange == UCLOGIC_PARAMS_PEN_INRANGE_NONE) { 270*01309e29SNikolai Kondrashov /* Set in-range bit */ 271*01309e29SNikolai Kondrashov data[1] |= 0x40; 272*01309e29SNikolai Kondrashov /* (Re-)start in-range timeout */ 273*01309e29SNikolai Kondrashov mod_timer(&drvdata->inrange_timer, 274*01309e29SNikolai Kondrashov jiffies + msecs_to_jiffies(100)); 275*01309e29SNikolai Kondrashov } 2769614219eSNikolai Kondrashov } 277ff0c13d6SNikolai Kondrashov 278ff0c13d6SNikolai Kondrashov return 0; 279ff0c13d6SNikolai Kondrashov } 280ff0c13d6SNikolai Kondrashov 2819614219eSNikolai Kondrashov static void uclogic_remove(struct hid_device *hdev) 2829614219eSNikolai Kondrashov { 2839614219eSNikolai Kondrashov struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); 2849614219eSNikolai Kondrashov 285*01309e29SNikolai Kondrashov del_timer_sync(&drvdata->inrange_timer); 2869614219eSNikolai Kondrashov hid_hw_stop(hdev); 2879614219eSNikolai Kondrashov kfree(drvdata->desc_ptr); 2889614219eSNikolai Kondrashov uclogic_params_cleanup(&drvdata->params); 2899614219eSNikolai Kondrashov } 2909614219eSNikolai Kondrashov 291ff0c13d6SNikolai Kondrashov static const struct hid_device_id uclogic_devices[] = { 292ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 293ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_PF1209) }, 294ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 295ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U) }, 296ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 297ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_WP5540U) }, 298ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 299ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U) }, 300ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 301ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_WP1062) }, 302ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 303ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_WIRELESS_TABLET_TWHL850) }, 304ff0c13d6SNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 305ff0c13d6SNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_TABLET_TWHA60) }, 3069614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_HUION, 3079614219eSNikolai Kondrashov USB_DEVICE_ID_HUION_TABLET) }, 3089614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 3099614219eSNikolai Kondrashov USB_DEVICE_ID_HUION_TABLET) }, 3109614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 3119614219eSNikolai Kondrashov USB_DEVICE_ID_YIYNOVA_TABLET) }, 3129614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 3139614219eSNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_81) }, 3149614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 3159614219eSNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_45) }, 3169614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, 3179614219eSNikolai Kondrashov USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3) }, 3189614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, 3199614219eSNikolai Kondrashov USB_DEVICE_ID_UGTIZER_TABLET_GP0610) }, 3209614219eSNikolai Kondrashov { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, 3219614219eSNikolai Kondrashov USB_DEVICE_ID_UGEE_TABLET_EX07S) }, 322ff0c13d6SNikolai Kondrashov { } 323ff0c13d6SNikolai Kondrashov }; 324ff0c13d6SNikolai Kondrashov MODULE_DEVICE_TABLE(hid, uclogic_devices); 325ff0c13d6SNikolai Kondrashov 326ff0c13d6SNikolai Kondrashov static struct hid_driver uclogic_driver = { 327ff0c13d6SNikolai Kondrashov .name = "uclogic", 328ff0c13d6SNikolai Kondrashov .id_table = uclogic_devices, 329ff0c13d6SNikolai Kondrashov .probe = uclogic_probe, 3309614219eSNikolai Kondrashov .remove = uclogic_remove, 331ff0c13d6SNikolai Kondrashov .report_fixup = uclogic_report_fixup, 332ff0c13d6SNikolai Kondrashov .raw_event = uclogic_raw_event, 333ff0c13d6SNikolai Kondrashov .input_mapping = uclogic_input_mapping, 334ff0c13d6SNikolai Kondrashov .input_configured = uclogic_input_configured, 335251b4275SNikolai Kondrashov #ifdef CONFIG_PM 336251b4275SNikolai Kondrashov .resume = uclogic_resume, 337251b4275SNikolai Kondrashov .reset_resume = uclogic_resume, 338251b4275SNikolai Kondrashov #endif 339ff0c13d6SNikolai Kondrashov }; 340ff0c13d6SNikolai Kondrashov module_hid_driver(uclogic_driver); 341ff0c13d6SNikolai Kondrashov 342ff0c13d6SNikolai Kondrashov MODULE_AUTHOR("Martin Rusko"); 343ff0c13d6SNikolai Kondrashov MODULE_AUTHOR("Nikolai Kondrashov"); 344ff0c13d6SNikolai Kondrashov MODULE_LICENSE("GPL"); 345