diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-02-09 11:56:57 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-02-09 11:56:57 +0200 |
| commit | ffc0060a633def5246d10d3544911b65f4018429 (patch) | |
| tree | 95d46f7ab8249a999532838f824b4caccd2fa0e1 | |
| parent | 3953b2e7a24e2cf3926a0038a91acf8d9f9ee887 (diff) | |
| download | hid-tmff2-ffc0060a633def5246d10d3544911b65f4018429.tar.gz hid-tmff2-ffc0060a633def5246d10d3544911b65f4018429.zip | |
delete sys/friction_level on remove
| -rw-r--r-- | hid-tmff2.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
