From patchwork Sun Apr 30 18:20:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 88942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2273512vqo; Sun, 30 Apr 2023 11:23:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mGavRMs1WN6BG2+7YO7aKBEGsxa9fF2XdFsIAV7yq/481FDLi15qT7dF7y7Hh525YTupT X-Received: by 2002:a05:6a00:1993:b0:623:8592:75c4 with SMTP id d19-20020a056a00199300b00623859275c4mr16381525pfl.29.1682879023080; Sun, 30 Apr 2023 11:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682879023; cv=none; d=google.com; s=arc-20160816; b=LYFC7DyzetFF9DTF61eNwAPdRhDo3/NgCmsOwvoASz1aUOlV1qwymSeZ+qyWdn/Kgn FySUOspApFObtQNbKJEgbVjtA23DPFJJJI0/TxUL9WGV0wbMolCwPcLaDc8k8PKtNm2N idVIMjgzLvR9xEOVIfn0W7yPoKQKRV62BXsC9H6q4J7jEBUyP2pLy4up90+PVbsw6TWd c79hAC3lthYkZbuOjszthkH9jPh6t5NCzXFLeCsmyFF1XCGLF/8MlwKtvUc9sBmHne8j 6YvM0h/uQHwE1IyWY5c9N280rXE6PVxQrXa5L5btkWQP8iM+9er0YNBTzIY1BoPxfcoE 83SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nKD8iEAzZbPfFI52hHSA6v7JlC0MrBmiG2Qn9PRyp5M=; b=aDKaEyQ0LT8xZCCWCw40AXjSp7IiDGMdierzloQutv7EOuBBeTnF4ZUeCLKNjHErnS AA71HNJ+3x0Y+rpP1wWDCMoztXLvmu+GDDHW4fVQCGOh+8wG2SXU0KwxcUx2Gr2znZVt 6zNw0I443bYt9aMg1KsxVFMRqp0y+UKfzhJRltrjqFBidi60QuNRYo4rWmiyH+6AGhSS ntrgBALNdRIN4Qs3gtm1kFZQ9pKbQwoOyNApA2AdlddIK3bEVX66tlSujCnBlJAOWT4N hrD+TkQ9WA5dXbWFrjAUWURt8J3IN2JsTZ6iPx/5nicKzygtC/wxD0tSoIhmHpp8SU70 1Bmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=e3CBwVQ+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020aa79592000000b0063b716685fasi25950313pfj.235.2023.04.30.11.23.28; Sun, 30 Apr 2023 11:23:43 -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; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=e3CBwVQ+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231305AbjD3SWR (ORCPT + 99 others); Sun, 30 Apr 2023 14:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjD3SWL (ORCPT ); Sun, 30 Apr 2023 14:22:11 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16E141BD5; Sun, 30 Apr 2023 11:22:04 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id AEF0BCE0BF; Sun, 30 Apr 2023 18:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1682878891; bh=Rcioak1SAMFJlnKdICBYsQ1IntIypnG/42IWMTd887s=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=e3CBwVQ+vDjjcwctlyKeDI9LBCw7lFU4H1JR5XuSc4nQr+8N6DDegJy/LhYItvnCy DI/CQ83ebAZH7rDtIaTMPsTmNi0J7N6VRp1nIG91bf82uR+L929JGDKth5b7Qg4BPc Y6SiyXzXcNTORGcyZRxtl2rWCHwEw5xxJc47LM7M= From: Luca Weiss Date: Sun, 30 Apr 2023 20:20:53 +0200 Subject: [PATCH 1/5] Input: drv260x - fix typo in register value define MIME-Version: 1.0 Message-Id: <20230430-drv260x-improvements-v1-1-1fb28b4cc698@z3ntu.xyz> References: <20230430-drv260x-improvements-v1-0-1fb28b4cc698@z3ntu.xyz> In-Reply-To: <20230430-drv260x-improvements-v1-0-1fb28b4cc698@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dmitry Torokhov , Dan Murphy , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Raffaele Tranquillini , Yassine Oudjana Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1144; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=Rcioak1SAMFJlnKdICBYsQ1IntIypnG/42IWMTd887s=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkTrGmVqx1JVXuZF03ok1L4liY6n8w5n0NzE5Pw g9IopH67DuJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZE6xpgAKCRBy2EO4nU3X VhXnD/9Ct/pZCBcdZhfz5v4cc6oT7pG6n+Lj1gY2sk3DMXkI3B8g39hQh0fU+IyBvISljIrrFvN jK7c/8P4BnnEOMGqEddSoRqXBwykY7k1aLOKQTR1nhCaTI7yIFrWFQ8cc0ojYAWym+k5pelyQd1 kAIGUysi6AM97LMOeS9PLJ+Ab1LvWTitLS1ipFTsi0qjVKrAu8MgFKCw09D/Sv6MPO/NESapDtJ 8x4mc+RyiBABxqYg6sYp9OYI13UqaSklGy4M7l679b/GwZJtDRR4OzExupJIA3bQ2bjkQnq8/pk dJjmID/21HwecrXe6OKDtwaSFP+xj31gWq8tnb9CwShjz5n1RziVh/WceLAYWfuBKcNRuEjbODb /n8yC47Hi6LkrmK1d8dz34cpuB3BzsqEjXaJq3pXIcQhO54e7Re9uTZ5l+Wh/adywdhIfhfDTzA 7j+b/aqASHj8Fb1CylnhQe0bj4ip0orjJNbs4sR21mLIUgLsgrBYXTMKmlfYfJn+EPGswzOTdUP TMZcH1YEVyhOxBXK3BPOSK66UNSXmG8o0IPxnQNvliVGnmncxW+b6dIH56hng8B84vAymPl9tRj 1FH6vx4eRQqNc04f8A0T9zwOYdOR6GBomVrxmDITQ436SFMsKT1vxgoAG/ZEyw67YvZf1x+E+F9 K35lw5u98rPQopg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764626554361856417?= X-GMAIL-MSGID: =?utf-8?q?1764626554361856417?= ANANLOG should be ANALOG. Fix the typo. Fixes: 7132fe4f5687 ("Input: drv260x - add TI drv260x haptics driver") Signed-off-by: Luca Weiss --- drivers/input/misc/drv260x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index 8a9ebfc04a2d..e95c4e775b5d 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -149,7 +149,7 @@ /* Control 3 Register */ #define DRV260X_LRA_OPEN_LOOP (1 << 0) -#define DRV260X_ANANLOG_IN (1 << 1) +#define DRV260X_ANALOG_IN (1 << 1) #define DRV260X_LRA_DRV_MODE (1 << 2) #define DRV260X_RTP_UNSIGNED_DATA (1 << 3) #define DRV260X_SUPPLY_COMP_DIS (1 << 4) @@ -322,7 +322,7 @@ static const struct reg_sequence drv260x_lra_init_regs[] = { DRV260X_BEMF_GAIN_3 }, { DRV260X_CTRL1, DRV260X_STARTUP_BOOST }, { DRV260X_CTRL2, DRV260X_SAMP_TIME_250 }, - { DRV260X_CTRL3, DRV260X_NG_THRESH_2 | DRV260X_ANANLOG_IN }, + { DRV260X_CTRL3, DRV260X_NG_THRESH_2 | DRV260X_ANALOG_IN }, { DRV260X_CTRL4, DRV260X_AUTOCAL_TIME_500MS }, };