Message ID | 20181121051752.18387-5-anarsoul@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA46516B1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 21 Nov 2018 05:20:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7D5E2B394 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 21 Nov 2018 05:20:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB1102B462; Wed, 21 Nov 2018 05:20:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 669462B394 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 21 Nov 2018 05:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MJ6fHR23xtTFh2HeSX1Rh2BvwyrchqnWGwYyVE2256M=; b=kubrIB+JrCU0vN oYXSEIZoC2eqloJe8L9gohT6JwEWlxht7RqMx2epMXKi5eILYRpjVhQcItfyAvRN2351PZVpovdDN Vu9qUnyq78BwV56GC41nds0nuzicl6eOkcOsSBe8NwkKhstO3KfS89lpVRzw/WcKi84Ug+o/JRLi6 qVSu5OPFgvxzfBt9Mu4LehHlq/QFzOFVWyFYdtvO4DN7T016lq8AElYcfKXTHZVC26b7+41vSwUJj e0eCOirsyF9PKOWeriFDgNDaBAdNvazKwQJke6gOA2+Cc2/Qv4A2fQIUESy6YKR7PSNBWYkHAydgt LKjZLHNn2DzEVgoclMPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPKve-0004s4-ML; Wed, 21 Nov 2018 05:19:58 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPKv5-00042X-V1 for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2018 05:19:27 +0000 Received: by mail-pl1-x642.google.com with SMTP id v1-v6so3727615plo.2 for <linux-arm-kernel@lists.infradead.org>; Tue, 20 Nov 2018 21:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=vjj1rqCplCYcexvm2XC7f6g7VmtVJ3KGITcqN9KqvCs=; b=unr7aILKP6glgQJPk8v35MdXVzaV1VHKvOfCze4ByAaO1mseHqGbZr7GaoVhaqtbUx Tih9pSxiTiMDPgX/+3hZtQdBc5YbPnhju5TB/qF2Tf87QKH/BRPC4XIjHHBEtp3TL+N+ ilxt4nIYomopD1LBKvkmHohBsosFtazPOa/o2heGZgA5xRAmBvNT5jXppYFiJhp4Jh4r lpYhg+VmifRtSgDwfo51qtW7tFihiZHCcP1cUU8fMLAK6bnBNKwVGqjT7zn5Bb3Kg9Mx fZjXsJ9lXVziPadByk/oC7VuOysN3rSnh2POZIzVetuLfpj5CGRdKlArh736Wk/xbgdW 6XLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vjj1rqCplCYcexvm2XC7f6g7VmtVJ3KGITcqN9KqvCs=; b=XBsG40fW00NZ9dYPB3DWWEYFRE1NzzYAk4shBxmeoBoQiL1MHnzLb1rtq/GK0IuC6D 3hJP8gHvg5NAUsZBI4flUu4o7We+0iOgG/nVCH6jSMiNBW4ZRq0tdMA0qh0H27b4QtQu v/j/C+ZGHyyD+gPiQQHoulDCkOvjsv2xpwDQGT4wd6z7dW/begJ3+VtjWjKD59H5SFlF 3qjIik6oTSfW7zwuYSVaVC/xUYX2LYdvAQCTqqAgtDtuW7iUSCL21ykPfz0B+KPRplmj srrLAesxCm1/IajcEfjGQT+qhtiC2SEdEToC5LEOiJwOOeIHWPAQ7FAVXyOJVai5g0r2 fxcg== X-Gm-Message-State: AA+aEWbuS2eHSyupQ3AdW83e5TVabofXklCOPEFXOOjBsiOlGMjOhQiT Ahprieuyfwr9x4ON4KyDZP08l1vTsP0= X-Google-Smtp-Source: AFSGD/UjdROdTe0ScIUkglU6PVzh10UHfU5XdSSSTKKm8in0zx+TrFZNu6td22VlFrfBTxlMthQBXg== X-Received: by 2002:a17:902:aa4c:: with SMTP id c12mr2617092plr.48.1542777554641; Tue, 20 Nov 2018 21:19:14 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id v70sm8293074pfa.152.2018.11.20.21.19.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:19:14 -0800 (PST) From: Vasily Khoruzhick <anarsoul@gmail.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Maxime Ripard <maxime.ripard@bootlin.com>, Chen-Yu Tsai <wens@csie.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Vasily Khoruzhick <anarsoul@gmail.com>, Jerome Brunet <jbrunet@baylibre.com>, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 4/7] ASoC: simple-amplifier: make enable-gpio optional Date: Tue, 20 Nov 2018 21:17:49 -0800 Message-Id: <20181121051752.18387-5-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121051752.18387-1-anarsoul@gmail.com> References: <20181121051752.18387-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_211924_007889_56CA2D56 X-CRM114-Status: GOOD ( 12.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add support for audiocodec in Allwinner A64
|
expand
|
diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c index c07e8a80b4b7..351aa55c384e 100644 --- a/sound/soc/codecs/simple-amplifier.c +++ b/sound/soc/codecs/simple-amplifier.c @@ -89,7 +89,8 @@ static int simple_amp_probe(struct platform_device *pdev) return -ENOMEM; platform_set_drvdata(pdev, priv); - priv->gpiod_enable = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); + priv->gpiod_enable = devm_gpiod_get_optional(dev, "enable", + GPIOD_OUT_LOW); if (IS_ERR(priv->gpiod_enable)) { err = PTR_ERR(priv->gpiod_enable); if (err != -EPROBE_DEFER)
Amplifier may have no enable GPIO, so make this property optional. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> --- sound/soc/codecs/simple-amplifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)