aboutsummaryrefslogtreecommitdiff
path: root/hid-tmff2.c
diff options
context:
space:
mode:
authorkimi <kimi.h.kuparinen@gmail.com>2020-06-26 13:05:15 -0400
committerkimi <kimi.h.kuparinen@gmail.com>2020-06-26 13:05:15 -0400
commitdb578b8e136610b49200cb522e73c72219b14a57 (patch)
treebe582513cc934ae0653a688aa45b1a10d7350a89 /hid-tmff2.c
parentc64ac59ec00f42b54ece96359993ebb075cebe93 (diff)
downloadhid-tmff2-db578b8e136610b49200cb522e73c72219b14a57.tar.gz
hid-tmff2-db578b8e136610b49200cb522e73c72219b14a57.zip
what
Diffstat (limited to 'hid-tmff2.c')
-rw-r--r--hid-tmff2.c13
1 files changed, 1 insertions, 12 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,