From patchwork Sun Apr 2 20:09:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2841 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 333F23F330 for ; Sun, 2 Apr 2023 22:10:14 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id fi8-20020a056402550800b004a26cc7f6cbsf38037165edb.4 for ; Sun, 02 Apr 2023 13:10:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680466214; cv=pass; d=google.com; s=arc-20160816; b=fkEz2clzPlr3e//ZSUeC1b/win6co7ZN2hRFKnfTtC5qaZM/DZMiOQpsoTlPanZ1k7 cfjNK9GzjtWdhZVdBxDR1B5cfzuSkKVFbzRXZxFG+VqHvqFeDS6mcS+cMTwDJKxIyxWP QDtEopT5PCupVaB6X5BnqL0h1FQPwU36Oy257cO/bv03UeoxHO6budRYCD069W5eeR4x J9dOryt+Aemm2uVGTogeIJwWzFIy3zx2F6R0deZOYvyfjFpWKbSo9qDT58YCkhjLsLRb ZUuLqoRQhgCMYCg0ip33FimVQp2O+YpijeXZW/wBl3Yv5zx1YrSx3n7kH16efpEZdR+r 4S2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=h/2Lrk87ONsU/z+70KAQOwvRQiozXXUyEnIErAAh+ms=; b=NEnzD29apmsV410mQ7uMaIWmEEhAV4WpKOt2dm3oiLAICwP7snnWdKdHW1XFBB+5FJ 3oFBTok+9tbiCWQVgFIkG8efMUw/76X6/8BH90GCJNgJjwc64CMF3QGIPfmGBaH/5Zlw oK6gTrM+zqQvpahFMy7asuYqSFICCHInY8NrCn+RtCeded0qdY8z9g8cqO2p6a9NzWAZ ZB9Mf6u8K6CPizTGaak2dlqaYcCfLIP+9Nn2U6ag9UrAYrtQDhifb37gUscuAYsDEe0B Slt/Pugb6VVLUBYfsm0BHqyG2ucLybDiLNbpctGvdhxOo9xHLqOiiKCBcgF30kVat8fm VJkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bY8hUBO+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680466214; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=h/2Lrk87ONsU/z+70KAQOwvRQiozXXUyEnIErAAh+ms=; b=JJUgP3XFDulx8dT5LaKLdL7G9pFQ3TR3tI1L97yjZSOETzSc0G0v8Nexg+0n45sWAV rQTKf8h/AwHpQqUtn3NTY8XF4jiY/xLb74N7Mg6hMQknzm7Cr299iZQNi1rP764WKj59 yro/2SlRBEEHkaL71YSF51eBRQwBbxeBGs4AY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680466214; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h/2Lrk87ONsU/z+70KAQOwvRQiozXXUyEnIErAAh+ms=; b=cj1IMUGEghw4Ly2Ba1Bfzs+wGGeqp6260Zopk/AeQsRAbo7NkTJD6qkvGhSY9TPkUt KidkRK4lT7BreUpO0eUTOlVV5tlW86SJzW7TpdXhiOAZT6NDmkdRJKXwMjxfGI9OX2+m pGU6dctrkxsX8Abe72ACswDrlJSKsZv8fDDFGUzmlMU84Y8NFyToiVK+Ir62Ao71EFfE cBYmFKwLJELcwtzzaFKKa1rLXZtxaEmFkzSw5WupUm5v7DtA5zHfvw/xnUzth1hNwvwx U20znngiiXIglGe19g20NnUdpvqDgG99t4+sAZ3IOnaplwCJpqkV+qMQ/e2Eol6NSKSs FuCw== X-Gm-Message-State: AAQBX9cylAZR3R4+AI4PzixSWpu9qRUBUMs7jRZzRGlmNsRipfjECbQC cBZWDipN8ptZh4r5/11Z+ALIWPIrF3m1EaLQ X-Google-Smtp-Source: AKy350aIm+7kFV+5iGTv/b5o7XGN1mfXjJSXx+s6ZgVNsq3DR4Dyrlz6PXDxEBdEtGZRDFCPjMC7bQ== X-Received: by 2002:a17:907:6092:b0:930:310:abc9 with SMTP id ht18-20020a170907609200b009300310abc9mr18438126ejc.9.1680466213675; Sun, 02 Apr 2023 13:10:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:7ea0:b0:92e:e74d:23d3 with SMTP id qb32-20020a1709077ea000b0092ee74d23d3ls4646053ejc.6.-pod-prod-gmail; Sun, 02 Apr 2023 13:10:12 -0700 (PDT) X-Received: by 2002:a17:907:8687:b0:93b:46f7:a716 with SMTP id qa7-20020a170907868700b0093b46f7a716mr43449089ejc.50.1680466212056; Sun, 02 Apr 2023 13:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680466212; cv=none; d=google.com; s=arc-20160816; b=Hf3w5qi5ogoJLWNK+iHdYeh7tWWLdXCcC5/MIOw1nsBpCSqXwHfH1E3GflED8NpK/y aZ2l4IsK+Imnt5GCsNqaXE/isv0Mi0Vhzlq8U6+yGvhI/TTUj/LdjSPauMdTFbog8rL7 wng8I51ISAlUBIJA5JEwyrXW1rNXRf13fOi0yduELNCYK/TsqJkb8nNiOcoJElGkPQVt KUM7hF+I5kYlbxcNtjgH3qvF1ujuLLvAarkRgOno5EEDB7z83JMR0Pi67rdg0faxcF3F XG4zSOEpLAvdNx13F06N4sC+syR7tXdUg5YXUz87NsfS2qeUPSw0YxqiNMc9eaNrlVDW y0aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=XeS/K6Vgqovzy5IrEj4kKLQF6NPWoliB9Z+vqp09t2o=; b=YRQOghhEjnsZfCLGnQNL0lZD3mw63SRhnpIJlkQotKFiHyICFnWizxz/OMOQbo5E+c +zCczvQuDi/uXW0YrlfAyicwS4Wza6Kb5oysPBIny4NPGJ/m1RbEmd9vZWfVevqUrMow JDgIdB4PRMHAJN0HAa+K6i13Xq3O5v0HqWFqByBM6fnFL0At0cEwIE7RzKi0jICX72Sy He2TKKKanTytKj5n+zy9mAcMB5xT42UcUm6ibhStu13AQ2iorrJC75DocUdO/WnQknDM JRiuzucRCsXfTj+SnrLHIZXva/xia6Q7r3PIZPAvhE3rDNyClc2R+j4SRd68/Xggl7Km jjNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bY8hUBO+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id gj12-20020a170906e10c00b0093defcca8c7sor2115693ejb.145.2023.04.02.13.10.11 for (Google Transport Security); Sun, 02 Apr 2023 13:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:25d5:b0:932:40f4:5c44 with SMTP id n21-20020a17090625d500b0093240f45c44mr33576716ejb.36.1680466211712; Sun, 02 Apr 2023 13:10:11 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-153.retail.telecomitalia.it. [95.248.31.153]) by smtp.gmail.com with ESMTPSA id gl18-20020a170906e0d200b00924d38bbdc0sm3553127ejb.105.2023.04.02.13.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 13:10:11 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi , Dmitry Torokhov , Jonathan Cameron , Oliver Graute , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Wolfram Sang , linux-input@vger.kernel.org Subject: [PATCH 0/9] Input: edt-ft5x06 - convert to use regmap API Date: Sun, 2 Apr 2023 22:09:42 +0200 Message-Id: <20230402200951.1032513-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bY8hUBO+; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series converts the driver to use the regmap API for accessing the registers of the different models it manages, making the driver code more generic. The series has been tested on the following touchscreen models: - M06 - M09 - M12 - EP0430MLF0M - generic ft5x06 (05) The series also includes some code cleaning and optimization patches. Dario Binacchi (9): Input: edt-ft5x06 - fix indentation Input: edt-ft5x06 - remove unnecessary blank lines Input: edt-ft5x06 - add spaces to ensure format specification Input: edt-ft5x06 - don't recalculate the CRC Input: edt-ft5x06 - remove code duplication Input: edt-ft5x06 - don't print error messages with dev_dbg() Input: edt-ft5x06 - convert to use regmap API Input: edt-ft5x06 - unify the crc check Input: edt-ft5x06: Calculate points data length only once drivers/input/touchscreen/edt-ft5x06.c | 496 +++++++++++++------------ 1 file changed, 251 insertions(+), 245 deletions(-)