Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1746906ybg; Sat, 19 Oct 2019 01:37:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuX23P1wNqzj5o1RAEtujHYvqc4Xh+pgSpO4LF0EuTJCtCcSMvRW1GM9ZuGyMVK0YKIG29 X-Received: by 2002:a17:906:fcce:: with SMTP id qx14mr12865014ejb.186.1571474238186; Sat, 19 Oct 2019 01:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474238; cv=none; d=google.com; s=arc-20160816; b=dbVHHBHSnURkM6Yq9Nk7dB1By/iOJBU5MWzw/zyOs4zkVKiirUtZzX127FllQufYSg mEjAeCmButfifeUvyWb3qSgB8PAeQSW+uiFwX/1euJWjW24PdFW+TvEbiO02yXsnutZ7 bSvBa2jfP1KkIK2v3HfsA+yttgjWW/YmZwXPku8/vHyEQMDp3nTO/tRrrIaM38P5Yqcj RUMNyob1oAn1Fw8Lkv1K+9le1YgAlsI/jLQqTlfmL2Ykca1DPvv4UKHLTEKm1fMow1F4 bGEflzZAzE0+daRYN5HckvRyPbMBvgj7umnWPu80AZoXdWHEFcOexnfMnNIOOaSzDpMk UapA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wExNTCfJX1Uc01oDF2FZKLb/dTBy3nx/1mTyB6+pOIc=; b=Ytaxt9+qBiDpsZUTkwiak/o9iE8HR7vMucwD4mF6qsHUbWgQyiTilADDolKTfCLTfC Bc4NERJnxHeh+UkQWhAFJchcrP5O3qveocS7Ledf256xKRlpcyinAxzEHbRVDdHJixg9 SIK3k+uTejNpKuHkTKbWgDu1Kri94OhYvd+hiVXtTJn4XVWx1nNPYuwSUj1Qlc7Y7HyT kP23zONnX5GXUJe1UBorKodCi/33968Kxe3fal/CVqMi5VHHqUYVbJc31eh7pQoLht4I haOmRFfCQdsuyjCoYZEWWEgov2lA5g1K6RW2WVW0IoiYk//8jfcEkJKPy2ZLamjEinAF jZDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si4586154ejb.174.2019.10.19.01.36.54; Sat, 19 Oct 2019 01:37:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502094AbfJRPpW (ORCPT + 99 others); Fri, 18 Oct 2019 11:45:22 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:34817 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502026AbfJRPmi (ORCPT ); Fri, 18 Oct 2019 11:42:38 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1N4i7l-1hwI681tGp-011kPC; Fri, 18 Oct 2019 17:42:27 +0200 From: Arnd Bergmann To: Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Arnd Bergmann , Mark Brown , alsa-devel@alsa-project.org Subject: [PATCH 22/46] ARM: pxa: eseries: use gpio lookup for audio Date: Fri, 18 Oct 2019 17:41:37 +0200 Message-Id: <20191018154201.1276638-22-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de> References: <20191018154052.1276506-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:CBcymaRS0Tk88pjlgZFlVH3qNWbEbuDVF8a1b0EpQ/ufN479pdc WxFmWIlqotX3JQXT1UAKIf1sTu64lmAPRbAdvtGuVVyNIp/b1FBfzpc38avAXbnmvVWSxB+ THaBpbtDkyxI+IuDBkaedReH04nEZoxLa1P0P3R2h3lrYJAy5YIQRScepXWmBKeD8hEG96c 9hNT8Ux7/BXibSUbTSM2w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:taDEs8Sqbxw=:6tf02R9ujNhRlrPOWMgX5M 4NJrSoZ4kukKw3v6dsAkqsUHJZ3EYRhppr/joEDDcltHnCT6Wu1jNP20Z1x6yB+EYP6Cp901O /4SF2XBUSU7OJWlzDhCFb5HvOlWDV4K/++Uk3RGsofv5mB7fehtDmdYceMvyKQ7iXtnryjSg5 BcmgGsVjA5HvBzm7HI8+l2EWmC8ZjzeZCvm7gJcqGZsyEnYMTdWpbiflwdIC/WMWdcWXaYYOg wCthjJBoHnyaRcKNGHSPdXnHrD1LeUz/QXKaut4BDRnHe1qb8qOCukK+kCvYfuBY7fmU95Tjm fcOzXx4M5OGj+JeVyjHkz3EENRP8s0Qtgj3J5gWhO1WN4slu387pjRreP5hz9L4eNXnOqisH4 5fk9jdOEnoFiw//R7isRZ6Xy4cTTH6m6hZJoofa7SBfUx2QG2awqU2q6OpOAEUqXtjfObf3GL chBXSFBb918kuH8ucKrWhVOVeJwQcPubIC5WXHgBZKUotyhYejQVVah76vFWVoY5K71BeUzgA MHzLSjtj4rm6z9aLykxp54+pu2pAyEiFkBGwqp8OPN5q0vmuD1iXogaOeYP3yUr+GV+ckRHn3 mDvFLEU5OQsLksZ/FJA08pacmcmeICKeetZfJ6QFYmBHZVBrd+4JQNiGKUHs9jPbP6PRZOsrX tWHoabJj4Fa0cKwimfwZKxePXyPUaknxGYCFQN9V141zOvNApDmUEKyxqVGlYW5gGDzKzS6s6 rHpXtRc/SCJ07eyBNJ8Y71YNvS4+lBYz9vnkS0Fp1PpgQI3Rgi3R4fc1TVm0dYPgaOhdmOEaP h4PVUuJBtOh+8AfWczbBT9zD+imhrJceTz3Rsf9rFgchfYvrEPS0u6BQFS/STC/iegBeGM9zg 2+2fHfghINeIdxqAA6iA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The three eseries machines have very similar drivers for audio, all using the mach/eseries-gpio.h header for finding the gpio numbers. Change these to use gpio descriptors to avoid the header file dependency. I convert the _OFF gpio numbers into GPIO_ACTIVE_LOW ones for consistency here. Cc: Mark Brown Cc: alsa-devel@alsa-project.org Signed-off-by: Arnd Bergmann --- arch/arm/mach-pxa/eseries.c | 32 ++++++++++++++++++++++++++++++++ sound/soc/pxa/e740_wm9705.c | 35 ++++++++++++++++++----------------- sound/soc/pxa/e750_wm9705.c | 31 ++++++++++++++----------------- sound/soc/pxa/e800_wm9712.c | 31 ++++++++++++++----------------- 4 files changed, 78 insertions(+), 51 deletions(-) diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index d8a87ff66675..8399ce405093 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c @@ -24,6 +24,7 @@ #include #include #include +#include #include