From ffc0060a633def5246d10d3544911b65f4018429 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 9 Feb 2023 11:56:57 +0200 Subject: delete sys/friction_level on remove --- hid-tmff2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hid-tmff2.c') diff --git a/hid-tmff2.c b/hid-tmff2.c index f53a34a..1d00303 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -693,6 +693,9 @@ static void tmff2_remove(struct hid_device *hdev) cancel_delayed_work_sync(&tmff2->work); dev = &tmff2->hdev->dev; + if (tmff2->params & PARAM_FRICTION_LEVEL) + device_remove_file(dev, &dev_attr_friction_level); + if (tmff2->params & PARAM_DAMPER_LEVEL) device_remove_file(dev, &dev_attr_damper_level); -- cgit v1.3