Skip to contentSkip to conversation

HID: hid-elan: use default remove for hid device

PATCH In review Marcus Folkesson 2 participants 2 messages Sep 15, 2022 – Oct 14, 2022 1 message not in the archive HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: hid-elan: use default remove for hid device

hid_device_remove() will call hid_hw_stop() as default .remove function if no function is specified.

---
 drivers/hid/hid-elan.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/hid/hid-elan.c +0 -6
index 8e4a5528e25d..76d93fc48f6a 100644
@@ -507,11 +507,6 @@ static int elan_probe(struct hid_device *hdev, const struct hid_device_id *id)
 	return ret;
 }
 
-static void elan_remove(struct hid_device *hdev)
-{
-	hid_hw_stop(hdev);
-}
-
 static const struct hid_device_id elan_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_HP_X2),
 	  .driver_data = ELAN_HAS_LED },
@@ -529,7 +524,6 @@ static struct hid_driver elan_driver = {
 	.input_configured = elan_input_configured,
 	.raw_event = elan_raw_event,
 	.probe = elan_probe,
-	.remove = elan_remove,
 };
 
 module_hid_driver(elan_driver);
Signature · 1 line
2.37.1

A message that is not in the archive (sent off-list or not yet received): CAM8FrK+qj8aao5mEzzvmBS0Zi=qXqVXnE6X4uQP4Hp6-cPedJw@mail.gmail.com

#2 lore raw
Quoted 4 lines · Marcus Folkesson

Den tors 15 sep. 2022 kl 14:28 skrev Marcus Folkesson <[email protected]>:

Quoted 1 line
Quoted 8 lines
Quoted 5 lines

hid_device_remove() will call hid_hw_stop() as default .remove function if no function is specified.

---

Ping on this patch and the other similar patches.

Hi Marcus,

Just a quick FYI, we are still in the merge window period, and as such we can not push anything in linux-next that is not 6.1 material. Given that I intend to take those in 6.2, I will be able to process those patches next week at the earliest.

Cheers,
Benjamin