From patchwork Fri Oct 18 15:41:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 176890 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1033464ill; Fri, 18 Oct 2019 08:45:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAA6DrPNki+Es4Ysb218sSBJ60ZPwnnZ4SMeYLyBWl2VDeymYIuHrRyjHopqforDYqhgwb X-Received: by 2002:a17:907:2095:: with SMTP id pv21mr8865725ejb.324.1571413524406; Fri, 18 Oct 2019 08:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413524; cv=none; d=google.com; s=arc-20160816; b=W2/aXxGGB+PsanZyRGhKTAvZFsaNSzuPlWXgTzKV2mdZk5qL+B5VYJZvrWX5npHiKs JE5r2JktH2bG6sFioqplS9ydD4AKqbcmNHz6TH+G+SYfGy8Q8zuNRLoxXCuN1SIBGhtO xPVUOmnCplK12pLrJETeo6/ky3zFayfZ2aetufiUl43Jmuh8FcrcU18NhEkaMTec6fE6 uOo/qZxbQq5S1s4H0izmpDhOzrKrN84rxLKN1FK14bbD2wxcFSgrZT4craNdJM6IbY0I h5okP209kJOGrMMgX9do2fKZAQF1Y6isnapXRz4xIG3O71Zbnw/xd4u4ZG5tkoZuWRAs x0yA== 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 p14si3991186eda.411.2019.10.18.08.45.24; Fri, 18 Oct 2019 08:45:24 -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 S1727154AbfJRPpW (ORCPT + 26 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 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(-) -- 2.20.0 Acked-by: Mark Brown Acked-by: Robert Jarzmik Reviewed-by: Linus Walleij 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