Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp541911ybx; Tue, 5 Nov 2019 01:31:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzrMlBv/ztb49QfyKO8u43uNl0MUG5MLvMPbZ0kPFTFwc2oeHZqiiq39zl87yPwnRHx09sa X-Received: by 2002:a05:6402:13cd:: with SMTP id a13mr14434259edx.57.1572946299535; Tue, 05 Nov 2019 01:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572946299; cv=none; d=google.com; s=arc-20160816; b=v+MVKwuU9XwPTTzhFGT8E4fHvM3s9jK3+oV0MzNXqh2LDZXuYYbjDQpdndI6bzlsIT HYH4kRIjghdRkBcSdeFcwsT5tP2IwMcHbZoKTaMlIkzctJAHclAtB+PT210HiKFsu8Kx P1vQ5Vn+pBqNRteNDnMF+v2GiHeU1dyOZg4an9LSBP1bLG0II1DOgcJMV0WZk0tDN8fp dfFqD28+iXb6S67TPgdCuGIiqNwiK3tiZ8hulMeK3riBfx5JNyvT3x7nfWs7Uo+xBT/o mEEbtnoNfuzgLjnID9cX/AsG0L1z2ADkSXBz97DSkmEG4y2WFZa1smJLdhs+GHBt17Sk LJjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=F2FPfgjdbIXWdDjS0yCRl6/2h1CV4PZp64uPK2X2BNQ=; b=bEdzXFV6MaumypzedSAtDj/4TVquWXvusLRhJVFbmYL39PiVBZdOHEo/CMy9EPmhsR jgTSwWXHc0QmUk6YlNakEmqq0Ady+/ex+nWNLAIKy4ZjLd5d1YX56magUr8HwpURhH4z Q+ZnmfYyTe4IyDJCTGSMyXZca9WW4Q8GJVY2KFFLvMWLiv0NpWAW3pH/ZpRSLj0U9xCQ s51LcWQ+b3l1L1VJx6LHKajiMQ5uSqetmvgQpubxC8eXPzjYw3X7xtOivi0ejsoyF7MH sZHQjqYKgKqzGE++WKGt/aywx6FuuZclGSKSK3EblVPFR1qipTLD52uWvcUjIYLoP8uh x9ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WVjlcjsA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k50si8005070ede.224.2019.11.05.01.31.16; Tue, 05 Nov 2019 01:31:39 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=WVjlcjsA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388408AbfKEJ21 (ORCPT + 99 others); Tue, 5 Nov 2019 04:28:27 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35722 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388387AbfKEJ21 (ORCPT ); Tue, 5 Nov 2019 04:28:27 -0500 Received: by mail-lj1-f193.google.com with SMTP id r7so12273495ljg.2 for ; Tue, 05 Nov 2019 01:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F2FPfgjdbIXWdDjS0yCRl6/2h1CV4PZp64uPK2X2BNQ=; b=WVjlcjsAOE+e3hERSGqNCL8ugQssMBzjxA2Ol1tzpslqafskb+d2jyNqT1JD9GsOMo qsCQWow1BCS3ieMoh8sCB2LZw8OMmnvBYirEwVOK0hECiIXvPCK/qloP+/hGPgf7mBIW nGNIpW27JhXojS4uyw/a9qYmYpu4wEau1xe775jP74yD7K+PQU+DawGWaPSO4jZolhMl 6n7hDnxoY9IKeSpOdI6474fWiZmGTcVWlgZhkPxjoPRFYxP80S927Ww00HXm1JWknfso QkI943Fcr72SDf9V+JOoKKVnRzqbaw5PWTIj8OaHuycQeD6GgTHdHdEHSGxza4WG1wkx hJwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F2FPfgjdbIXWdDjS0yCRl6/2h1CV4PZp64uPK2X2BNQ=; b=aNj5P5hdiqZi4f9ygo9zWt13cLgmkR16WI2xl8UJGnxG9HPwqCtEMYIgVmgoMndmYo IMaDS/Pgd4HHezwLFdDU4TI7wD8hmkjZ+Pges4Ndq9a/5JvMM8/ZHzmzkU+CoVks2Dze Cb6jGjxOGS8RDL8v6S7fBsvMbycTawIriNRxh40bqCD+5BNuGtD9uU0jMknnoWlJ/CL1 CubeAdDRAIC8BINNhJfwsvUYPlbEssqCC/gEJCBPMe6pDFx4QmllCPckPNVSyHgHDZp3 EJKjLz2C7Au6tjGkj7+aoM25evhaxxLqx2LloNiFmkwW7Z25nS9piJ3aOqtTORrCxaIG Bxqg== X-Gm-Message-State: APjAAAVRiJi2xklbg4B0B4MwLaEWXzspgVwOhM7JPiN05EIauCS0E7bt c6vMLEQ2mbI8FKCM+G4Fwen7zykYj2DgjXgwBhMFMw== X-Received: by 2002:a2e:9a55:: with SMTP id k21mr8803557ljj.251.1572946105330; Tue, 05 Nov 2019 01:28:25 -0800 (PST) MIME-Version: 1.0 References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-26-arnd@arndb.de> In-Reply-To: <20191018154201.1276638-26-arnd@arndb.de> From: Linus Walleij Date: Tue, 5 Nov 2019 10:28:12 +0100 Message-ID: Subject: Re: [PATCH 26/46] ARM: pxa: zylonite: use gpio lookup instead mfp header To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Linux ARM , "linux-kernel@vger.kernel.org" , Dmitry Torokhov , Linux Input Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 5:42 PM Arnd Bergmann wrote: > The mach/mfp.h header is only used by this one driver > for hardcoded gpio numbers. Change that to use a lookup > table instead. > > Cc: Dmitry Torokhov > Cc: linux-input@vger.kernel.org > Signed-off-by: Arnd Bergmann (...) > + GPIO_LOOKUP("gpio-pxa", mfp_to_gpio(MFP_PIN_GPIO15), > + "touch", GPIO_ACTIVE_LOW), What I tried to do with code like this, when I was ambitious, was to wind out mfp_to_gpio() as well and either just encode the offset on gpio-pxa as a define locally. But this works too, the kernel looks better after than before and I am not perfectionist, so: Acked-by: Linus Walleij Yours, Linus Walleij