[PATCH v2 33/33] HID: logitech-hidpp: remove unused kfifo and clean up minor helpers

From: Dmitry Torokhov

Date: Wed Nov 11 2026 - 02:11:09 EST


Remove unused linux/kfifo.h header inclusion and the unused
delayed_work_fifo field from struct hidpp_device. Also drop the unused
finger_count and button_feature_index fields from struct wtp_data.

Drop the redundant input dev.parent assignment in hidpp_allocate_input()
which is already performed by devm_input_allocate_device(). Also drop
the stale ret format specifier in the hidpp_connect_event() input device
allocation failure log message.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/hid/hid-logitech-hidpp.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 019b917c3b90..6529c7b10b8f 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -18,7 +18,6 @@
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/sched/clock.h>
-#include <linux/kfifo.h>
#include <linux/input/mt.h>
#include <linux/workqueue.h>
#include <linux/atomic.h>
@@ -198,7 +197,6 @@ struct hidpp_device {

struct work_struct work;
struct work_struct reset_hi_res_work;
- struct kfifo delayed_work_fifo;
struct input_dev *delayed_input;

unsigned long quirks;
@@ -2847,9 +2845,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp, struct input_dev *dev)

struct wtp_data {
u16 x_size, y_size;
- u8 finger_count;
u8 mt_feature_index;
- u8 button_feature_index;
u8 maxcontacts;
bool flip_y;
unsigned int resolution;
@@ -4360,7 +4356,6 @@ static struct input_dev *hidpp_allocate_input(struct hid_device *hdev)
input_dev->id.vendor = hdev->vendor;
input_dev->id.product = hdev->product;
input_dev->id.version = hdev->version;
- input_dev->dev.parent = &hdev->dev;

return input_dev;
}
@@ -4474,7 +4469,7 @@ static void hidpp_connect_event(struct work_struct *work)

input = hidpp_allocate_input(hdev);
if (!input) {
- hid_err(hdev, "cannot allocate new input device: %d\n", ret);
+ hid_err(hdev, "cannot allocate new input device\n");
return;
}


--
2.56.0.542.g3ef89b7020-goog