Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7626890rwl; Thu, 23 Mar 2023 06:53:14 -0700 (PDT) X-Google-Smtp-Source: AK7set8mL4mwFw8Ky6g5z80qgd+z172zVbXYy9syxfOH3oou7hG42g/ktC1aMEGFZEjQAkct6ATq X-Received: by 2002:a05:6a20:af2a:b0:dd:9f07:626d with SMTP id dr42-20020a056a20af2a00b000dd9f07626dmr1469918pzb.44.1679579593897; Thu, 23 Mar 2023 06:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679579593; cv=none; d=google.com; s=arc-20160816; b=NOyC50ClguCJMs4Uat6IuZkKhcJZdmpN/q58RmlGgu3orYlty3OFKVoeu478XLRTzW TKQVCCx8h+ZFl5LititBZstI47HSXAoFKrbYRHNOQnT8b359N1aCGUULzj01K+e4LLI/ 2d8OkiAVKBVXu+/rlhr8/Tb8y1eRJrM9bFOhUJ4sA9JFsK2Or08L6attP8iTYIHpBx0A 4KImaCFf2HzS8CBvAkcW3FCl7CoFcU+tFXyYjwMokHxjoIfBBGj7dKTDBFe+Y2pGlqp8 aM/uA+AExqsAB/z2fk5j4noHRycGB3NdQQ2HDkGE1OGARmC2Hk9pmWqVG2w66gRGvcPc KsFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=clBhI6MOO/PKd+4N/xNeMzw38DhGvk7BRz+BKO0Ka9E=; b=F7slO5cIUjC0QJbI2oMwbMR7NbV9fCOxfW4xTPfQz+2K7VYY0spCcZrUXzA6o+gy/+ kRypD/wuNKIlxWKtnHRNmjAAukbKh7FRO4/BHy4ElzhXeUoyAELZNIj7grjHlIoG7aJo trRioldn1CI5oJ0J/+BS4S2PB1kBMUWDwuHCj1cTC3PygRk4T3yXOdNCojUv8V9uochf 4Tw5E6aocaMnd1cxSxKe1js2wEeW9EGyjyxMh8czUgpfyiFB70gRKhEXgz97CwOcKcv5 aCjSiet7lXi2ESRS4lGkFJnKL4oaE3PvsrCUyffC20dDPvismSr6QmwuQY/XMCJh8WmD cRhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a634612000000b005073e3342eesi17603042pga.143.2023.03.23.06.53.01; Thu, 23 Mar 2023 06:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231857AbjCWNwy (ORCPT + 99 others); Thu, 23 Mar 2023 09:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbjCWNwx (ORCPT ); Thu, 23 Mar 2023 09:52:53 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F9FB748; Thu, 23 Mar 2023 06:52:51 -0700 (PDT) Received: from koko.localdomain ([89.1.213.94]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MV6Bs-1q5AF61VWo-00S9OV; Thu, 23 Mar 2023 14:52:46 +0100 From: Maximilian Weigand To: Linus Walleij , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maximilian Weigand , Alistair Francis Subject: [PATCH 2/6] Input: cyttsp5: remove unused code Date: Thu, 23 Mar 2023 14:52:01 +0100 Message-Id: <20230323135205.1160879-3-mweigand@mweigand.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230323135205.1160879-1-mweigand@mweigand.net> References: <20230323135205.1160879-1-mweigand@mweigand.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:YUH5iMMLxAx7e4vsbCAz3PXdHSmfYWWG0GYRvSJUmzyU8xy+8Nc dh9EE38jxbmYYN2c+EjmnLv70tj981P1xIZdAQ5Xbr4tc+k7TfSXIe6tFIVaCeZphlv4WGw MluiAWwdCyasKeqjHXqrbD2uBt/QKQzUbusHVeGCtb3PNOHVt+NbFd6Xw+rabpGj/bMVX7W Ou84g6q+ktG6aN20xnrig== UI-OutboundReport: notjunk:1;M01:P0:QGfNrt1tYeU=;hDQe2Vd0r4SngaEZ4qXWTCPz9Y+ MQuGU59IIBTgYLlAZEu1mP5HG5yo3pqT9orTEACPX/VQWi/GguRSCu/4+lhpF1hpW7qScI/Po 3ZiSkk/PXlf7lGd28uPR6zX6qqehEHYRdTJHX9+feH+KcfDejl0Cs3REO1edQZ1h9wGfJ6NMq IwKhib49Y0ay7UE0AaY9bGmNZ/RqseNqMoTISFh4pqbJ6f8XnGEY7O/MZzR9Sm25oNL3hQfEJ BmhxNIMPWfHMmWVLbheqTQQVlqe1fLauT+fpa0f4nCvK6KFqukb1koJ2e/+a6izQIYsy5RVvn oI2VCGsguJUACIH8ScaQ2N1lEjTcDT7Ii7B3oLRL+61VKj80gb+C43eruQnSXSUUziYb5NBxI IbAioewwRx0MvQnQqJDAGz6PxvXqO4zZ54e3CBQ4trvrraDO0oyP5e+tHI9kuRBuyLeUghTHJ BOuPEJLcLggYy0pU35Wu3SR6/E8gdyQY03QPfeFWOiuq5BBx0BlLJ2rF0CC5PhPMJzB0R+hYw bOSltGIrniqQhaQtP4NV3H6gVGv2ReZ4oSR1hnDIjXzMnX678q/rNUKLHyw23BNZg86jD/h2K 6g2pU9bnV/Iz1CEOl/gULcJmq51T8HpOIo5Ny3UrDNExEgcUHLNGGsx3HhD4alwFAgLXHpyYs Pxob7DbDqCaKvrV7r25VCdPU/45fbLwJNWjy2cnkQA== X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The removed lines were remnants of the android driver of the touch screen and are not used in the current driver. Signed-off-by: Maximilian Weigand Reviewed-by: Alistair Francis --- drivers/input/touchscreen/cyttsp5.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 42c7b44e37f8..8b0c6975c6ec 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -600,13 +600,9 @@ static int cyttsp5_get_hid_descriptor(struct cyttsp5 *ts, struct cyttsp5_hid_desc *desc) { struct device *dev = ts->dev; - __le16 hid_desc_register = cpu_to_le16(HID_DESC_REG); int rc; u8 cmd[2]; - /* Set HID descriptor register */ - memcpy(cmd, &hid_desc_register, sizeof(hid_desc_register)); - rc = cyttsp5_write(ts, HID_DESC_REG, NULL, 0); if (rc) { dev_err(dev, "Failed to get HID descriptor, rc=%d\n", rc); -- 2.39.2