From patchwork Fri Mar 28 18:05:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 3906361 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3249E9F2E8 for ; Fri, 28 Mar 2014 18:05:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6479620295 for ; Fri, 28 Mar 2014 18:05:32 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 101A520272 for ; Fri, 28 Mar 2014 18:05:31 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9A0F926554F; Fri, 28 Mar 2014 19:05:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 768372654FE; Fri, 28 Mar 2014 19:05:20 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 44FE326551D; Fri, 28 Mar 2014 19:05:19 +0100 (CET) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by alsa0.perex.cz (Postfix) with ESMTP id A60D12615B9 for ; Fri, 28 Mar 2014 19:05:12 +0100 (CET) Received: by mail-bk0-f50.google.com with SMTP id w10so948807bkz.9 for ; Fri, 28 Mar 2014 11:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8iX/2ibrvDR2oTn0r8G2O3kWa9zLlw5BJk7qGpATc+o=; b=vH4Sg5Nq/qHflnAoy88uPHphRRmH5rojkXb/lsPU1WD8efry+05g7E9qSnEbz6rm5T vUdKxudHqJlCSE63S1bWkigG4+m6jjVnFdNoTUDqxdFJNqpZYuFLeIJIOXQg1JNH9rmy V11Rkd5BgFi0kgtoZnlPEbQpSiHAyjNOkptscDnnFrkmrnv60LyY+FQKPMosEhSdllAY BXsoXKecK2F/J/xDR/igKZuKdu0dacGH7S/QChSx8T7jOQNsreUMhIYVMXHKlFVqcsMT ByRviT6egdMLbdhkJGD+ZDNFrFNOMVmgIwHREwVxqFSl7vZg6qTQbQGr52mRTnMwa8p6 e9Jg== X-Received: by 10.204.202.144 with SMTP id fe16mr1007054bkb.88.1396029912267; Fri, 28 Mar 2014 11:05:12 -0700 (PDT) Received: from tamtam.fritz.box ([2001:4dd0:ff00:9394:224:d7ff:fec6:a0ec]) by mx.google.com with ESMTPSA id bh9sm5831957bkb.16.2014.03.28.11.05.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Mar 2014 11:05:11 -0700 (PDT) From: Daniel Mack To: broonie@kernel.org Date: Fri, 28 Mar 2014 19:05:04 +0100 Message-Id: <1396029905-6807-1-git-send-email-zonque@gmail.com> X-Mailer: git-send-email 1.8.5.3 Cc: alsa-devel@alsa-project.org, Daniel Mack Subject: [alsa-devel] [PATCH 1/2] ASoC: ak5386: Add regulators to documentation and fix sparse warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Document the newly added regulators to the DT binding document. Also, "static const char const *x" is not identical to "static const char * const x", which sparse now complains about. Fix it. Signed-off-by: Daniel Mack --- Documentation/devicetree/bindings/sound/ak5386.txt | 4 ++++ sound/soc/codecs/ak5386.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/ak5386.txt b/Documentation/devicetree/bindings/sound/ak5386.txt index dc3914f..ec3df3a 100644 --- a/Documentation/devicetree/bindings/sound/ak5386.txt +++ b/Documentation/devicetree/bindings/sound/ak5386.txt @@ -10,10 +10,14 @@ Optional properties: - reset-gpio : a GPIO spec for the reset/power down pin. If specified, it will be deasserted at probe time. + - va-supply : a regulator spec, providing 5.0V + - vd-supply : a regulator spec, providing 3.3V Example: spdif: ak5386@0 { compatible = "asahi-kasei,ak5386"; reset-gpio = <&gpio0 23>; + va-supply = <&vdd_5v0_reg>; + vd-supply = <&vdd_3v3_reg>; }; diff --git a/sound/soc/codecs/ak5386.c b/sound/soc/codecs/ak5386.c index a30be5c..8107a1c 100644 --- a/sound/soc/codecs/ak5386.c +++ b/sound/soc/codecs/ak5386.c @@ -19,7 +19,7 @@ #include #include -static const char const *supply_names[] = { +static const char * const supply_names[] = { "va", "vd" };