diff options
Diffstat (limited to 'src/tmtsxw/hid-tmtsxw.c')
| -rw-r--r-- | src/tmtsxw/hid-tmtsxw.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/tmtsxw/hid-tmtsxw.c b/src/tmtsxw/hid-tmtsxw.c index b8ee1fd..ac44bdb 100644 --- a/src/tmtsxw/hid-tmtsxw.c +++ b/src/tmtsxw/hid-tmtsxw.c @@ -196,17 +196,15 @@ static int tsxw_send_open(struct t300rs_device_entry *tsxw) return 0; } -static int tsxw_open(void *data, int open_mode) +static void tsxw_open(void *data, int open_mode) { struct t300rs_device_entry *tsxw = data; if (!tsxw) - return -ENODEV; + return; if (open_mode) tsxw_send_open(tsxw); - - return tsxw->open(tsxw->input_dev); } static int tsxw_send_close(struct t300rs_device_entry *tsxw) @@ -225,18 +223,15 @@ static int tsxw_send_close(struct t300rs_device_entry *tsxw) return 0; } -static int tsxw_close(void *data, int open_mode) +static void tsxw_close(void *data, int open_mode) { struct t300rs_device_entry *tsxw = data; if (!tsxw) - return -ENODEV; + return; if (open_mode) tsxw_send_close(tsxw); - - tsxw->close(tsxw->input_dev); - return 0; } static int tsxw_wheel_init(struct tmff2_device_entry *tmff2, int open_mode) @@ -267,9 +262,6 @@ static int tsxw_wheel_init(struct tmff2_device_entry *tmff2, int open_mode) tsxw->report = list_entry(report_list->next, struct hid_report, list); tsxw->ff_field = tsxw->report->field[0]; - tsxw->open = tsxw->input_dev->open; - tsxw->close = tsxw->input_dev->close; - if ((ret = tsxw_interrupts(tsxw))) goto interrupt_err; |
