Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7869057ybc; Fri, 29 Nov 2019 02:21:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzqHDLkfjDG1TlyZOnW9V0qfqMEYDsbF0hkBBz11dXT6nXuWWMyQ0yE/4L1NwvI3GtON+nT X-Received: by 2002:a05:6402:c93:: with SMTP id cm19mr1905628edb.257.1575022876197; Fri, 29 Nov 2019 02:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575022876; cv=none; d=google.com; s=arc-20160816; b=ZOcsqEwnoUSr/pAW+WZmpXhtApXwzHZu+Vu7yfAhc7cXkl9CfaNuT2swAvy8Ht/ys/ 9GuRntLC2QUG0h8eaV0uRwq02mvy3/uEGT70qUW4awRseO6jBgKCUxbKp+SVbZ188ODd LYtjEc9yUWT3q1v8erLfXcitTXXaaMqZLR8oHPuROUjGw6JaepC+EqBvHBA6OrQUp2FL K1XVtMfcSrg1tiGOSbp1F3ha7R8dg/55Zq5figsPI29ccPWN89apJ5HVg7CR98jyfdyU UK9aGbvYZarLzuE9vpnToCjcr9eupPwLkzgZUN1ebJKkmT885Xldf7f9mSR2x07NXkgf KFBw== 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=tpY2pLF0HAewtAE48D1xv731kjs5nuVhUrjH/3/vp2I=; b=AcMqnuClpHtSkyfZlhkGQ4bK6bl3Dd0hlGz1qlr4XtZwGnuF7jTFQJEeboPa9BfiL1 omL3urCVvow9R1GeC1KvNJ4HpRQnU/h+76b0XI8ARGNePJIr0CtwsrMvGNHZp+1LU4jX iIptF3EWIirv1ef1HgTR1gV6kXlLQ3dQp2th1ymV4/trKMQUKQ9SPu6JjJgEBpRhU2kY LKDoDRYYh8BPYQEM5Zhk6nAvJrctSuEKGvhsMEJ1UINhVl19ahayWaxy41kyWola2la2 tNpXlVsF54h/inZi4WhQ80eR0xQ0pnDBYgbyp0qBd/w1fc0rHyXoc94RZsSkwG+HSRQ2 DPxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QBfEobs7; 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 e14si2044803edy.423.2019.11.29.02.20.51; Fri, 29 Nov 2019 02:21:16 -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=QBfEobs7; 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 S1726768AbfK2KT2 (ORCPT + 99 others); Fri, 29 Nov 2019 05:19:28 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35530 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfK2KT2 (ORCPT ); Fri, 29 Nov 2019 05:19:28 -0500 Received: by mail-lj1-f193.google.com with SMTP id j6so22385757lja.2 for ; Fri, 29 Nov 2019 02:19: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=tpY2pLF0HAewtAE48D1xv731kjs5nuVhUrjH/3/vp2I=; b=QBfEobs7rG/ytrsdlTWoPADEwrTervnGvWy8SkJUm3ySK4Y3PSpVhXcygiwiTi5xSX Xul6YL7sVzHkWpxwAOOMFfDTdw1aWx0K/ixwh4o1BMeMLYejcabrPf93xrDZHTAepwvJ a4fvWJUUbXSjC35jBA+oZ56BtBw0FlMHN+qLqnTQ6YUmDgxBi2OyaeWSZfNcYppwataj SrZhV8KT8wOwp/BkdnOA5dzNdfeSS1NfzGF+rlB3qpp54yfdDC6yAm5Gtpn1VrylzY/o s/qVRxhh+/I/S0D7gFpxY6vYAgztO8V8Tfp1SsdkcQ1sFKrmTRVms/+PSKalH+7NKU3p TLmg== 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=tpY2pLF0HAewtAE48D1xv731kjs5nuVhUrjH/3/vp2I=; b=uBRN7LvTLz8773PwtFSRKo85iSAgCVCGa8mxpFg5JdV+ZGfnZuHUuaa3+qkFTs+iM/ OoVpfvuod1sL5VJ6czaOxlc9wIuypeUlZd6+uuvIGbUNQu1tQGl7+7g2Sp+qRCFj0NfZ 7zGrwCPYZfrUaBerOrjBeCAoT3Jmzd7XhQstGJuUGUoOz/xh3aNSieUf8Ybgu21jh+/+ kdOkhXVSw4P1Sca3POUb0KMvgmZRs28S90HdQ1yHJbjCho0ScLTnDlLIoQtj25Z8aG32 QZUXRUxDm/7IU0hCenGzXN8j0S8rU/pTtjaB1Tgs+jPFyQxsuQL+7fef1PgrC4vNpYOz n16A== X-Gm-Message-State: APjAAAXtyR6W4RP/N5oGTlAjZrTdf1MoQed7/k+KTmwKTAXqAqVBL3La eBezXcSaw4dJYf1H71kNvXI9jJNUEvcWQu/yEmt5aA== X-Received: by 2002:a05:651c:1049:: with SMTP id x9mr16248533ljm.233.1575022766281; Fri, 29 Nov 2019 02:19:26 -0800 (PST) MIME-Version: 1.0 References: <20191127135932.7223-1-m.felsch@pengutronix.de> <20191127135932.7223-2-m.felsch@pengutronix.de> <20191129101542.drtcn44twcyzxqmm@pengutronix.de> In-Reply-To: <20191129101542.drtcn44twcyzxqmm@pengutronix.de> From: Linus Walleij Date: Fri, 29 Nov 2019 11:19:14 +0100 Message-ID: Subject: Re: [PATCH v2 1/5] gpio: add support to get local gpio number To: Marco Felsch Cc: Bartosz Golaszewski , Support Opensource , Lee Jones , Rob Herring , Liam Girdwood , Mark Brown , stwiss.opensource@diasemi.com, Adam Thomson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Sascha Hauer 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, Nov 29, 2019 at 11:15 AM Marco Felsch wrote: > > What about renaming gpio_chip_hwgpio() everywhere > > to gpiod_to_offet(), remove it from drivers/gpio/gpiolib.h > > and export it in instead? > > That's also possible but then we have to include the consumer.h header > within the gpiolib.c and this seems to be wrong. But since I'm not the > maintainer it is up to you and Bart. Both ways are possible, What about following the pattern by the clk subsystem and create and put it there? It should be an indication to people to not use these features lightly. We can decorate the header file with some warnings. Yours, Linus Walleij