From patchwork Tue May 30 16:32:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 101000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2314218vqr; Tue, 30 May 2023 09:40:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kosuBYB67G3CNVgOMxT/e2ZGiws5ntnYQAVItWTmdgZeSiisD2KMxrHbuKcgxOvLncVuA X-Received: by 2002:a17:903:124a:b0:1af:daf7:7240 with SMTP id u10-20020a170903124a00b001afdaf77240mr3076849plh.58.1685464827134; Tue, 30 May 2023 09:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685464827; cv=none; d=google.com; s=arc-20160816; b=NqgWDyatke48Ts46FjBKXwRZorhTN0MnmY9AjkHUaF+ik0OBHN8LjETVlzqOIBHgmB 1qI+0wDFW3VaqLWBaXn2nKVlMRcTDKMzek1CqLtkcSZBOcS3ROW0IYb/C4iPzKQFWKF4 mAGxls0YNx5wxA/l3ia/THy+QW517N2Inw9RQVfRkAIqjqv1lnSW/c3woadwA5i+yLra iOS35Z+Glk8Oj+2tSexAOn02WHcEDGYGJXQjy3XE98J8Hdse/w0qgmhlj04Tvp7dK6nl uTMytFVdFSzDqR2JYtCzrSi5eaL2E5mPoXaUTX24zh1w1uEZjWW8yOTEeBfcA2JvUh6m lhYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZptMN5b1HFyj0M+tXHUCEbylco9ZmxRdPWPDQJlP/Bs=; b=n9VYChAvQNvLVV2dk7xFzIooULKs6OfDjD4dJixigH8uEvfYRNGFEuJHJ8rwCwrnLC XwAg84z4pWUHX3JqPwf9XaC86a9EDd6k/ZEO2EV9PteD1+uUz1mR/rWlfb/XyqojCcsa gXEqfbMe4W6lJa2wMZCYqojqV+Rpsv55x4Z/Uxvz1sv/i1iPAVkpjFbssWs19+RAEtSk 7Qoz4JNxv3hjp3H2tEPGpmdUpqY9ANHkUl8CB/vafV2fHy1sASwX+35gsGDKtRrBbx4l 1paMuXBb+Qcuxjdt+7UajAjvRKsI9/u65ML1zfr5Mba7NGxYOt/Hrilb1QWjjMXC2uhJ RSrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=onK1rnO+; 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=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170902e81100b001b03d543548si4354339plg.344.2023.05.30.09.40.13; Tue, 30 May 2023 09:40:27 -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=@163.com header.s=s110527 header.b=onK1rnO+; 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=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231138AbjE3Qfb (ORCPT + 99 others); Tue, 30 May 2023 12:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbjE3Qf3 (ORCPT ); Tue, 30 May 2023 12:35:29 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 850201B6 for ; Tue, 30 May 2023 09:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=ZptMN 5b1HFyj0M+tXHUCEbylco9ZmxRdPWPDQJlP/Bs=; b=onK1rnO+EYkJtYR+wNumM +ZgqUdwMyzLbsmWtYCmNVG3nZ1XyztXBsVgNrPMVJhjItx3f3IPh7nrCRZK6u/pm aS21qfzXVZVbpUg7E/Cp6WVGJCDFFfUBjzheq4xqQN6XnAnnuWW/EsxaxfgNL8dr yGT2BCDwmKQE0ro+axY4hI= Received: from lizhe.. (unknown [120.245.132.246]) by zwqz-smtp-mta-g1-1 (Coremail) with SMTP id _____wBXj0cOJXZkGoMHBA--.32862S4; Wed, 31 May 2023 00:32:54 +0800 (CST) From: Lizhe To: james.schulman@cirrus.com, david.rhodes@cirrus.com, tanureal@opensource.cirrus.com, rf@opensource.cirrus.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, Lizhe Subject: [PATCH] dirvers/gpio: remove redundant reset gpio suffix Date: Wed, 31 May 2023 00:32:10 +0800 Message-Id: <20230530163210.4324-1-sensor1010@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: _____wBXj0cOJXZkGoMHBA--.32862S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF1kGF1kWrWUCF4xXr15CFg_yoWfJFX_Ga yF9a1UZ34jvFs29ry5uaySyw4vvFn3Ar4Skrn2kr1DA3W5Z3Z8tanFyrnxCFs5Wa97WFy8 XFnF9r4YyFZ7tjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRKfHUJUUUUU== X-Originating-IP: [120.245.132.246] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBlxZ-q2I0ZKQeYAAAs9 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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?1767337966609521908?= X-GMAIL-MSGID: =?utf-8?q?1767337966609521908?= no need to add the suffix "gpio" or "gpios" after "reset", as they will be automatically added, see of_find_gpio(). Signed-off-by: Lizhe --- sound/soc/codecs/cs35l34.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c index b3f98023e6a7..cbf0f2f4f9df 100644 --- a/sound/soc/codecs/cs35l34.c +++ b/sound/soc/codecs/cs35l34.c @@ -1061,7 +1061,7 @@ static int cs35l34_i2c_probe(struct i2c_client *i2c_client) dev_err(&i2c_client->dev, "Failed to request IRQ: %d\n", ret); cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev, - "reset-gpios", GPIOD_OUT_LOW); + "reset", GPIOD_OUT_LOW); if (IS_ERR(cs35l34->reset_gpio)) { ret = PTR_ERR(cs35l34->reset_gpio); goto err_regulator;