aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hid-tmff2.c13
-rw-r--r--hid-tmff2.kobin464552 -> 21976 bytes
-rw-r--r--hid-tmff2.mod2
-rw-r--r--hid-tmff2.mod.c36
-rw-r--r--hid-tmff2.mod.obin143104 -> 3016 bytes
-rw-r--r--hid-tmff2.obin323008 -> 19904 bytes
-rw-r--r--modules.order2
7 files changed, 6 insertions, 47 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c
index 984f5c3..a29985d 100644
--- a/hid-tmff2.c
+++ b/hid-tmff2.c
@@ -22,8 +22,6 @@
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/module.h>
-#include <linux/fixp-arith.h>
-
#define USB_VENDOR_ID_THRUSTMASTER 0x044f
#define THRUSTMASTER_DEVICE_ID_2_IN_1_DT 0xb320
@@ -269,7 +267,6 @@ static void tmff_ctrl(struct urb *urb){
hid_warn(urb->dev, "urb status %d received\n", urb->status);
}
usb_free_urb(urb);
- //spin_unlock_irqrestore(report_lock, flags);
}
static void tmff_init_ctrl(struct urb *urb){
@@ -335,7 +332,6 @@ static int tmff_play(struct input_dev *dev, void *data,
struct hid_field *ff_field = tmff->ff_field;
int x, y;
int left, right; /* Rumbling */
-
int trans, b_ep, err;
unsigned long flags;
struct device *d_dev = &hid->dev;
@@ -369,17 +365,10 @@ static int tmff_play(struct input_dev *dev, void *data,
x = 256 - (x - 128);
}
- x = (x * fixp_sin16(effect->direction * 360 / 0x10000)) / 0x7fff;
-
- send_buf[5] = tmff_scale_s8(x,
- ff_field->logical_minimum,
- ff_field->logical_maximum);
+ send_buf[5] = x;
}
- //printk("x = %i\n", x);
-
-
usb_fill_int_urb(
urb,
usbdev,
diff --git a/hid-tmff2.ko b/hid-tmff2.ko
index 40c400d..8b18d8a 100644
--- a/hid-tmff2.ko
+++ b/hid-tmff2.ko
Binary files differ
diff --git a/hid-tmff2.mod b/hid-tmff2.mod
index 587f15d..97abfee 100644
--- a/hid-tmff2.mod
+++ b/hid-tmff2.mod
@@ -1,2 +1,2 @@
-/home/kimi/Documents/Projects/hid-tmff2/hid-tmff2.o
+/home/kimi/Documents/tmff2/hid-tmff2.o
diff --git a/hid-tmff2.mod.c b/hid-tmff2.mod.c
index 0929711..80db206 100644
--- a/hid-tmff2.mod.c
+++ b/hid-tmff2.mod.c
@@ -22,39 +22,9 @@ __section(.gnu.linkonce.this_module) = {
MODULE_INFO(retpoline, "Y");
#endif
-static const struct modversion_info ____versions[]
-__used __section(__versions) = {
- { 0xb90cb2c6, "module_layout" },
- { 0xb314bd85, "hid_unregister_driver" },
- { 0x399e83c3, "__hid_register_driver" },
- { 0xdecd0b29, "__stack_chk_fail" },
- { 0x95ba88c, "input_ff_create_memless" },
- { 0x52af4d4b, "_dev_info" },
- { 0x60da7bc0, "hid_hw_start" },
- { 0x484d36ee, "usb_interrupt_msg" },
- { 0xdf872899, "_dev_err" },
- { 0x69acdf38, "memcpy" },
- { 0x443d25f8, "hid_open_report" },
- { 0xe00d2f98, "__dynamic_dev_dbg" },
- { 0x2d9e7e22, "current_task" },
- { 0x162615, "usb_kill_urb" },
- { 0x4d1ff60a, "wait_for_completion_timeout" },
- { 0x7f02188f, "__msecs_to_jiffies" },
- { 0xd9a5ea54, "__init_waitqueue_head" },
- { 0xc5850110, "printk" },
- { 0x37a0cba, "kfree" },
- { 0xf9a482f9, "msleep" },
- { 0xf51ed08d, "usb_submit_urb" },
- { 0xec4e6a94, "kmem_cache_alloc_trace" },
- { 0xc4a14306, "kmalloc_caches" },
- { 0xe0d57b51, "usb_alloc_urb" },
- { 0xd0d6e733, "usb_free_urb" },
- { 0xf64c8101, "_dev_warn" },
- { 0x3d6a80fd, "hid_hw_stop" },
- { 0xbdfb6dbb, "__fentry__" },
-};
-
-MODULE_INFO(depends, "hid,ff-memless,usbcore");
+MODULE_INFO(depends, "hid,ff-memless");
MODULE_ALIAS("hid:b0003g*v0000044Fp0000B65D");
MODULE_ALIAS("hid:b0003g*v0000044Fp0000B66E");
+
+MODULE_INFO(srcversion, "81319B0E6CEECDF7715648B");
diff --git a/hid-tmff2.mod.o b/hid-tmff2.mod.o
index b7ce157..5cef49c 100644
--- a/hid-tmff2.mod.o
+++ b/hid-tmff2.mod.o
Binary files differ
diff --git a/hid-tmff2.o b/hid-tmff2.o
index 064b975..978af98 100644
--- a/hid-tmff2.o
+++ b/hid-tmff2.o
Binary files differ
diff --git a/modules.order b/modules.order
index a82dd0e..6c3d9bd 100644
--- a/modules.order
+++ b/modules.order
@@ -1 +1 @@
-/home/kimi/Documents/Projects/hid-tmff2/hid-tmff2.ko
+/home/kimi/Documents/tmff2/hid-tmff2.ko