From patchwork Tue Sep 18 19:12:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 146941 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp250424ljw; Tue, 18 Sep 2018 12:12:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZyR4MtkzUjdeLbi7gnFN+gkNXpLFUNBmiINwCA9Kgvg1Tvl+sbaWOvmYHTVZzaSsyR890B X-Received: by 2002:a7b:c143:: with SMTP id z3-v6mr17581871wmi.105.1537297966562; Tue, 18 Sep 2018 12:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537297966; cv=none; d=google.com; s=arc-20160816; b=f05zxaVwJ3wVOPvD0Dj/ARPC6CzwPz3+SQ34XlM7IsH9p13fpzRnmqNNsOPlyw3QhJ RbHaQbcQSMNCDIQ9FsGt1ryEwCUblivAi/o6B7YmuMdTl0YIiZUkpkpNwokm6Mf51wAv nKhYlnUE2BRX9kfcw3zbfOL8g6I8E8QF+3kTlGV2TdaNmUu88f1j0gukpclzRqvjuNwr NDYfohR6MsTL+lo4C+FOf2uiZUCBP4YpRsVQEJkeuFGbiwAZ7fwA27gvxrhEOcPNXKxs ke1XZCTo3HebisGL0vq42lvNJIrMiAUUaAFVUSlZ0srMU+wA4GpvRcqmdP1VG8R9p+46 9a7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to; bh=efKA8Qt/2Pm0fnjgvUNVCkkoYDFQ59VKJ8KGm1o4AH0=; b=n8DO+XesLQeavmwVYEe9Dpj53lC0vBPv8Xw/DewsDoT/wREtdIF51AZtnFz9lI/m43 vzZqoo8/QDfuiic5BA8VHWGBf3e1kDK2PXd7yaZZy1gZawmRtCegdkrDioM35KN3n5v3 Y624/iNkAcG4n8mWBAaqXp8lwh8Sx6wv1XYWO+l0gOy1c9cEpGncUpqCAP4AVGiYmlSd bvkdWTXLGEp8h+HY1Qq451NkmDNwtxhDP34XVUqQdueKBRw5Gt0hQUr+dRRxRhhgtYHr asFPHZFAN5uhsSzwnWYlt0/v6BfldWCJLDMKNdyxn2WKDGEJ4sez/a0vT01+9nDCpQPK UU/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KWZOzPpx; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id z8-v6si14111773wrv.127.2018.09.18.12.12.46; Tue, 18 Sep 2018 12:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KWZOzPpx; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4A68E2678AB; Tue, 18 Sep 2018 21:12:45 +0200 (CEST) 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 3AA432678B3; Tue, 18 Sep 2018 21:12:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by alsa0.perex.cz (Postfix) with ESMTP id 374602678AD for ; Tue, 18 Sep 2018 21:12:39 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id k21-v6so1455959pff.11 for ; Tue, 18 Sep 2018 12:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WQ7uc8QWGGpUa/KSmiOUSgVzUK79FikiAbcCtPnd3Jk=; b=KWZOzPpxBN5FUqHV7N8wPBqKBsQbI6UJ+QdC8c4ilFkdB6c80GxQs3y6Alp2tmi6TK 8e1EbDJGPx2PyQf5QyIvUXTbhAjMajXyDrDUzvI/02dj5+lkzf+GhLMzaqzfHuYzbmyc OmMD5cgJcWGnS8NdCayTUWQxBSyL2HQPfvL7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WQ7uc8QWGGpUa/KSmiOUSgVzUK79FikiAbcCtPnd3Jk=; b=eaXCXVi5Y4MOobb1RxNf2l1pNCslcFe82X8nUXfrHr/0gLBzGzXbhP2JoOYI3ap4EF do3rkgnYJiE8Z4MTBbWLHZjZhd8m5xHG7PixWhjVxqVMmXjByQBJUUnnTHv3yjM1eOKD M011bpCv5jCcnr4RI/Uug5Q1N4DNSqi5kpyf9I633e/2bPqsUWZVHnPt6zbxmLkepuFJ 7Gax6qlKYu7bmsvA2zLAtsdr88P4mJ5HeqopLubPwZGudofDWQ7m+eGsShznJopS0Bha lZC+o1PlLGhmQvCrdDRnRhHnu26kMWAGA3cAplPEawA+vnYi+PzJ3bphGpjeDbgYOUj4 6jCA== X-Gm-Message-State: APzg51DEbxwwFE3ntM43VNRWyG7ZkGdHtZUXuIeKRPSf5dr7miBmOHLV FtULF3w5wa16HPPoFpvmk5brbQ== X-Received: by 2002:a62:9101:: with SMTP id l1-v6mr32211921pfe.226.1537297958472; Tue, 18 Sep 2018 12:12:38 -0700 (PDT) Received: from localhost.localdomain ([209.121.128.187]) by smtp.gmail.com with ESMTPSA id s73-v6sm34113770pfi.154.2018.09.18.12.12.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Sep 2018 12:12:37 -0700 (PDT) From: Linus Walleij To: Liam Girdwood , Mark Brown Date: Tue, 18 Sep 2018 12:12:33 -0700 Message-Id: <20180918191233.17178-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Cc: alsa-devel@alsa-project.org, Linus Walleij Subject: [alsa-devel] [PATCH 2/2] sound: soc: wm8903: Cut gpio_base data 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 This variable is only used inside the file, and we should never hard-code the GPIO base, so delete this. Signed-off-by: Linus Walleij --- sound/soc/codecs/wm8903.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.17.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 23e43ff40ded..545512dc4c45 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -144,7 +144,6 @@ struct wm8903_platform_data { int micdet_delay; /* Delay after microphone detection (ms) */ - int gpio_base; u32 gpio_cfg[WM8903_NUM_GPIO]; /* Default register values for GPIO pin mux */ }; @@ -1876,17 +1875,12 @@ static const struct gpio_chip wm8903_template_chip = { static void wm8903_init_gpio(struct wm8903_priv *wm8903) { - struct wm8903_platform_data *pdata = wm8903->pdata; int ret; wm8903->gpio_chip = wm8903_template_chip; wm8903->gpio_chip.ngpio = WM8903_NUM_GPIO; wm8903->gpio_chip.parent = wm8903->dev; - - if (pdata->gpio_base) - wm8903->gpio_chip.base = pdata->gpio_base; - else - wm8903->gpio_chip.base = -1; + wm8903->gpio_chip.base = -1; ret = gpiochip_add_data(&wm8903->gpio_chip, wm8903); if (ret != 0)