aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Pagani <dario.pagani.146@gmail.com>2021-01-30 21:32:25 +0100
committerDario Pagani <dario.pagani.146@gmail.com>2021-01-30 21:32:25 +0100
commit516d7bbfcdb387e5bbab2b821628db43a8571b8f (patch)
treec8b23afe7cb541af536ef5d536c02a4b4a0bf055
parent38bb24d95df29b9f27ae468ae410db735419d21b (diff)
downloadhid-tminit-516d7bbfcdb387e5bbab2b821628db43a8571b8f.tar.gz
hid-tminit-516d7bbfcdb387e5bbab2b821628db43a8571b8f.zip
replaced wrong subfix
-rw-r--r--hid-tminit.c8
-rw-r--r--hid-tminit.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/hid-tminit.c b/hid-tminit.c
index 5b44315..bffd4a5 100644
--- a/hid-tminit.c
+++ b/hid-tminit.c
@@ -85,7 +85,7 @@ static void tminit_model_handler(struct urb *urb)
struct tm_wheel *tm_wheel = hid_get_drvdata(hdev);
uint16_t model = 0;
int i, ret;
- const struct th_wheel_info *twi = 0;
+ const struct tm_wheel_info *twi = 0;
if (urb->status) {
hid_err(hdev, "URB to get model id failed with error %d\n", urb->status);
@@ -101,9 +101,9 @@ static void tminit_model_handler(struct urb *urb)
return;
}
- for (i = 0; i < th_wheels_infos_length && !twi; i++)
- if (th_wheels_infos[i].wheel_type == model)
- twi = th_wheels_infos + i;
+ for (i = 0; i < tm_wheels_infos_length && !twi; i++)
+ if (tm_wheels_infos[i].wheel_type == model)
+ twi = tm_wheels_infos + i;
if (twi)
hid_info(hdev, "Wheel with model id 0x%x is a %s\n", model, twi->wheel_name);
diff --git a/hid-tminit.h b/hid-tminit.h
index 2e38ecc..04b0cf9 100644
--- a/hid-tminit.h
+++ b/hid-tminit.h
@@ -26,7 +26,7 @@ static const unsigned int setup_arr_sizes[] = {
* must be used when preparing USB packets
* and vice-versa
*/
-struct th_wheel_info {
+struct tm_wheel_info {
uint16_t wheel_type;
/**
@@ -42,7 +42,7 @@ struct th_wheel_info {
* Known wheels.
* Note: TMX does not work as it requires 2 control packets
*/
-static const struct th_wheel_info th_wheels_infos[] = {
+static const struct tm_wheel_info tm_wheels_infos[] = {
{0x0306, 0x0006, "Thrustmaster T150RS"},
{0x0206, 0x0005, "Thrustmaster T300RS"},
{0x0204, 0x0005, "Thrustmaster T300 Ferrari Alcantara Edition"},
@@ -50,7 +50,7 @@ static const struct th_wheel_info th_wheels_infos[] = {
{0x0407, 0x0001, "Thrustmaster TMX"}
};
-static const uint8_t th_wheels_infos_length = 5;
+static const uint8_t tm_wheels_infos_length = 5;
/**
* This structs contains (in little endian) the response data