Skip to content

Commit

Permalink
delete sys/friction_level on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimplul committed Feb 9, 2023
1 parent 3953b2e commit ffc0060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hid-tmff2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ffc0060

Please sign in to comment.