From patchwork Sun Apr 2 20:09:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2844 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 59AFA3F330 for ; Sun, 2 Apr 2023 22:10:18 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id k14-20020a508ace000000b005024a8cef5csf27156171edk.22 for ; Sun, 02 Apr 2023 13:10:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680466218; cv=pass; d=google.com; s=arc-20160816; b=lumRY5JoLa9O1lN5zmnrQmBMrhVWr7LC4gHrHjIdoKhs7/CwmfjsN+pigZjVXXwRtA GpB2ks8MCO9ukgmSxSvjW+XgLGZ81qfH1DaZy7RiUBJZJ1sh7DxA+8xEYsu3Ve2g3UbT IMkQ7PdFSXJIvI4OyuITs7OBYKzgLQU85GuslyhalULZsRvHpP4sBN1N2rfvQ9qrZBGB 4HvC2cWPZJq5OaW2LSjaKfdojJkGLKoP9GXBsH5CNr7OD4vjtNM0TMqIrLv86pGZhy0a 1ULigYUxFb99O3f19VxEqXbYez6GS9CBeR6mxSLTp5mZYGDw049+tgPNsyOTeNrLbee1 GL4A== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mhxNIk0gaLHfotZ2jdrRQqdcmUd4thjZ2D0fT5EMYs0=; b=f1OVhO05KFDuhI6bNXZ1KEba3u1MczQRkM6mItpeo+Lii0EXe0CX+Z8VgY9jM0ML2o B1DKHSZoda0Y2j4fIuSIgKF75Cw5fXsJiu/S+jlQZurDQc0noJ51wxcqzKO/E6glsK+x ZHAgQ7pYSL9Vk0gqCoMDCzyIQBWoTQPd6NvKqnaPgH8pixrcT0Fd9Zo2tF0erLDfrjH0 v4Q+dyZMwKO9+ORfGrKmM4xWibhNgI5jP0771VYFUuoqhOvIzMocH3kKjcMQuFD4VamC A1fOnZR+LDkzWIVvtbyAZ4RXIAQBOuRpdoTTsg5gAbHKfEmmUatntoSGyp5I4dyHTJxX ySRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Q7TzE39D; 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=1680466218; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=mhxNIk0gaLHfotZ2jdrRQqdcmUd4thjZ2D0fT5EMYs0=; b=SlyI3sQWROrdF3tRsrHC4qNY7g8bd8Wy8MoEUJLC3R11L84DzMoefspIbQSEpxdWqp GJ7bzWjead/i822toZzaX1ma7hPmo4BnWfuvetWfX1NLZ78YPilFgXytBSppW0lpY5oS 6vC+xTrOg2OmWANmpQxyz2NpspLtLMl9lRG80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680466218; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mhxNIk0gaLHfotZ2jdrRQqdcmUd4thjZ2D0fT5EMYs0=; b=IhGxJAEfPusi/bwQdj57WwtEVVafdsmcaBa6JgAnPhzrRE/NQqW2SO6Kvqwi1B+cJP zBr/Ll1Y6UAuJ0AXLMhUOhMhUa4kmrfFSUuSDTAn2D4gDT0K34+TuJhfj9Y4TXSD8tvY JhRZJxXym5P6q8/8Pgsd7qRjlYD84FxKj7Lm3ILkYlM6g6fbTOMfXfzewBE25IDMibCI 8ltc0JWLKAoNpFk+eAGV79zICKgnyCEXPEQ2lR2w2XfglLGiwqhWU8V/4i+nMdwAMqaR t6uV8xEPJKU/jxnDkn9uiwLIAC5sN7J7r9EL0/taxFSY+HKjri31FFpG/W/BOT9/LKNv JBBg== X-Gm-Message-State: AAQBX9crCvgXNu9raV1BDrvt75eqdU8IdIXSKXfQS++5g9j5S+jSEzmu uhRTOMqP9fY6AbrdaukLjn0VYi2p X-Google-Smtp-Source: AKy350YdA9LxIGUzsVkBpsOz2QMpQwXFmJ+rBIbwK/j3HnIVzyQzqfiKi1Ivad3PH0eGSfCdv0YV5Q== X-Received: by 2002:a17:906:3746:b0:8b1:cd2e:177a with SMTP id e6-20020a170906374600b008b1cd2e177amr16627817ejc.6.1680466217855; Sun, 02 Apr 2023 13:10:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:9f2a:b0:92a:da3e:a6b2 with SMTP id fy42-20020a1709069f2a00b0092ada3ea6b2ls4642858ejc.4.-pod-prod-gmail; Sun, 02 Apr 2023 13:10:16 -0700 (PDT) X-Received: by 2002:a17:907:16a6:b0:947:f4e2:aa2c with SMTP id hc38-20020a17090716a600b00947f4e2aa2cmr7227595ejc.29.1680466216477; Sun, 02 Apr 2023 13:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680466216; cv=none; d=google.com; s=arc-20160816; b=Eh1epgy3oGojZVweHY/QtkVrb7Ao4faTqV93veb1MLhJFe+rYYDQi4X7D8U7dQ+Y75 o34obw7uz7nUySKTN0oiiMQ8yz31E6Au0EFSEKDwtyHrgI4IEHazEocMnMsBjl4xzCar R9WwKMfKWuO+hMXnPiwLnVMKQUYRheZHMZFtLC0v5SOi+3j6QsiRKoWcIf2V4uxgZ4fH jBtFdxtQguUKxf65VL70o3+I03I5NSvpFvsIANhD4o+KSBsyabkXqQKwfUFz0ChvJbIS uCB5XJeUjzbr/MO2juc4m2hHcaRNbctYtnP/1lsGuXGSFdFFwNsVe96p4pBiXxwrkAu4 cdMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QYEoj3HNykDYYL4XbvupGelYH0ebBXdpkyODlCn0pFQ=; b=GXyDe057uljR+wPn4W5vOzccfb/TKkEEzB4obvdHwhQFrd1Ut0sKhVyCQpaE9Nhxbs DIjKszsSCD2GyjVx2goeYzVoJCvZItxCSfwc0cFI6L1lLATpunPeYGfKNkLDpSsWRB+T Zz1z/e+P5G/OWcUcfUbEAnqDsl9TO3Dts87wYyKAYNZVmAjBWsRawGep2A3MVf2NOnnq frvfb3ufsxAulb9xbCQEjGa85caWXgb5qJzQ+gOFEX/JsomKvrzN7EkMBUCtCQ9ToWrL j6rwOgj6eAYhssz+qNzgAkq4zSmokKTN7vanXoRisDBF0Gcg278HXEpxD0ZWO47ML9fx gusg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Q7TzE39D; 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 gx17-20020a170906f1d100b00931db712769sor3769581ejb.17.2023.04.02.13.10.16 for (Google Transport Security); Sun, 02 Apr 2023 13:10:16 -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:f754:b0:92e:fcc9:aa22 with SMTP id jp20-20020a170906f75400b0092efcc9aa22mr16072121ejb.37.1680466216192; Sun, 02 Apr 2023 13:10:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 13:10:15 -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 3/9] Input: edt-ft5x06 - add spaces to ensure format specification Date: Sun, 2 Apr 2023 22:09:45 +0200 Message-Id: <20230402200951.1032513-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230402200951.1032513-1-dario.binacchi@amarulasolutions.com> References: <20230402200951.1032513-1-dario.binacchi@amarulasolutions.com> 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=Q7TzE39D; 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: , It adds spaces around '-' as recommended by the Linux coding style. Signed-off-by: Dario Binacchi --- drivers/input/touchscreen/edt-ft5x06.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index c0ad3e4b6662..c96fe6520578 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -183,11 +183,11 @@ static bool edt_ft5x06_ts_check_crc(struct edt_ft5x06_ts_data *tsdata, for (i = 0; i < buflen - 1; i++) crc ^= buf[i]; - if (crc != buf[buflen-1]) { + if (crc != buf[buflen - 1]) { tsdata->crc_errors++; dev_err_ratelimited(&tsdata->client->dev, "crc error: 0x%02x expected, got 0x%02x\n", - crc, buf[buflen-1]); + crc, buf[buflen - 1]); return false; }