From 516d7bbfcdb387e5bbab2b821628db43a8571b8f Mon Sep 17 00:00:00 2001 From: Dario Pagani Date: Sat, 30 Jan 2021 21:32:25 +0100 Subject: replaced wrong subfix --- hid-tminit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hid-tminit.c') 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); -- cgit v1.3