From patchwork Thu Sep 15 12:34:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 12977311 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EF39ECAAD3 for ; Thu, 15 Sep 2022 12:28:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbiIOM2u (ORCPT ); Thu, 15 Sep 2022 08:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbiIOM2r (ORCPT ); Thu, 15 Sep 2022 08:28:47 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BA5B9A944; Thu, 15 Sep 2022 05:28:44 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id w8so30093546lft.12; Thu, 15 Sep 2022 05:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=40DtW8ykLy6BtsPyzt0N0rx1HrOvNQG+mtHjb5a76vM=; b=S729pxPI2NNp+bMSsU08hhAxAKqO0WPbRila+RhVk/rmc2I5mFsvOjCRawITkIBdoC atHyVCt+0c9t4XGuvhmP8capU04CYD/zEkKQh62xi9ttT4PIiHJg4dDvyu/wPEk6g3hY 1CWBsvZuqm2OCcEkyRzSgx88wH0oUWSDqUusl3SOVxgGJJYVCGyqdbj6HLE9lKVfE71p D3r7DXuPqrJanUuXt9xlmbKTxNeOWiZLBC0zyRQhApK/f1xXygZDkInNYV5h9lxCXbcm 56MhEspNrbLREwgJdLZGQIZdecvPDB8upbJvPocTBOzZHjX5ym4MzQL6hD2pIlxUVRBq A6aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=40DtW8ykLy6BtsPyzt0N0rx1HrOvNQG+mtHjb5a76vM=; b=GWoX8DehfaPTVqM+8obpuWoVDw6v6/T2CJSy2KlQHhamvLEzPhiIAvc1/Eei53Kakp dgBJ73AQ4pUrVjB9QeBVb+sIiRmcnQ39B8PdzBt7jJQJOXdqg90L2+EkzD1px9ckPptb a3+xqgiH0fd3EcFWsgzazihOUE7qA1ORdANLGnJNI++NqCqVcwGAfmjRcl6IZ0ay6a0o XRLX7DcerQB2SdXPrcQLs0iEhbXUICPm2rhqlw1uIYCTzuR3nm5IyX4wpcJLGT7IKPz/ UB/5Hdf27AAlVSt6PSg61ykP5/XB5MXn9gqDCGSO635q3f8Lzllc+Om4E2k8swGFMMVa 2JZQ== X-Gm-Message-State: ACgBeo1RDFOZItPIM1LUFHkvN1FvPb0X8yhLgW1S3yTRxXFkrmEIGHNp /YLT7mUWMCyEn/Sbh6g1rvvVfpjzRmo= X-Google-Smtp-Source: AA6agR7mjb9UCxyEQx8o6xu96a6tC7oILCdaZHgUrKu1EuSFExzlaLnviCPWMxFKV0gwE6H4K8qqLw== X-Received: by 2002:a05:6512:e9f:b0:498:f1e5:26e5 with SMTP id bi31-20020a0565120e9f00b00498f1e526e5mr12633819lfb.517.1663244922096; Thu, 15 Sep 2022 05:28:42 -0700 (PDT) Received: from localhost.localdomain (82-209-154-112.cust.bredband2.com. [82.209.154.112]) by smtp.gmail.com with ESMTPSA id v22-20020a2e9616000000b0026bfb6a2e6dsm2878340ljh.25.2022.09.15.05.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 05:28:41 -0700 (PDT) From: Marcus Folkesson To: Jiri Kosina , Benjamin Tissoires , Marcus Folkesson Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] HID: hid-elan: use default remove for hid device Date: Thu, 15 Sep 2022 14:34:32 +0200 Message-Id: <20220915123432.520760-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org hid_device_remove() will call hid_hw_stop() as default .remove function if no function is specified. Signed-off-by: Marcus Folkesson --- drivers/hid/hid-elan.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/hid/hid-elan.c b/drivers/hid/hid-elan.c index 8e4a5528e25d..76d93fc48f6a 100644 --- a/drivers/hid/hid-elan.c +++ b/drivers/hid/hid-elan.c @@ -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);