Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1045483ybl; Sun, 1 Dec 2019 19:00:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyN2+Gs+TN2RRyBYvnqD16JbG3MeaKQVOMTWS87WhDtxogPxmcZkGy5r5Bk099qXb53fPTf X-Received: by 2002:a50:fc99:: with SMTP id f25mr3352502edq.250.1575255614178; Sun, 01 Dec 2019 19:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575255614; cv=none; d=google.com; s=arc-20160816; b=s9SPE9kIm4hRX+PhTJjmzBpew/KY14twlJZfhgiUTpc7lxMIHWpjrarR14D8qNftuW KKcnmauBzgGt2QkpfIapEGbpRydrrC1CbHfmYxOlt7v6bs2ctHkdYmPfK4Nk8KDXzi2D gDjgcdKOtud5/kVqw7e+Y4RKvOWJR9jylO5yC/3pwZBEImIYyDFRvcJwfwvzivfoXVuw UjeMlZCmqCCgddMunR4CZKhfTGAqYXBH+CmeUKsX1bJK2frMl01666KpvlEGlxvjTiHy hhk9Yczr5Po/MdIUpN3papGLy689FvHhT29QvhdK7C1p4jTPFKZlmTR2EJ8IkEOTMOmC SfKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=va9zds2kkUShR4/2SREiF7f/aOZtuH3Ys0/FEp1ZZwk=; b=p1V7upe+nmOambBd5horYV6kAsmAWczbUyYtHWmUc7bBCCm0dY5ty7DHPzgqJ+A2Ys MLQOdjjal0Fls48l/bUAaK6jmkveMEFzhSgUNVVEypULRhuEHIDg07fM2+CsJR6cn23B NeOpCh2zU3U8XkvFgTbki0ValaibVAvP2pmnD1Xq90Q1BNfbax2/zrV3l9pU8Rxj1Apa AdTZC2WdOXPMEXRoK5yeAr38XqHYLnxpP5sXXtzSriybyypUhMyynbGVElMRuigVPrQQ lq45GppJhW+sA4ydg6I9YzY7UodyYbqJj44T81o+g5pzhgrIuBdDks2hF0xeJfaTkLsY po/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=jDceI3nu; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=O4z1YV2Z; 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 e1si8424214edn.154.2019.12.01.18.59.50; Sun, 01 Dec 2019 19:00:14 -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=@aj.id.au header.s=fm1 header.b=jDceI3nu; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=O4z1YV2Z; 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 S1727458AbfLBC6d (ORCPT + 99 others); Sun, 1 Dec 2019 21:58:33 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:35687 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbfLBC6d (ORCPT ); Sun, 1 Dec 2019 21:58:33 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1B3AC7454; Sun, 1 Dec 2019 21:58:32 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Sun, 01 Dec 2019 21:58:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=va9zds2kkUShR4/2SREiF7f/aOZtuH3 Ys0/FEp1ZZwk=; b=jDceI3nutGxbAnXwraCwd0awJdlJLIV6nu86POF1goIGjwj fkJTh25UjJHlQ7tXafJZFsFI7NHapbjsnmJhewc+lZxxF/haezryPBwkxhJLop5U 2UPj59fTtotjlzuHBMUeoCOkC3vJDcLZUY0hE1681x9X84llYSxPii7CAwkO0JRD Y3Kf1A3UWbGqD+cJwqjZ2uXFFj0BO7X+BsTE0zwsDmEZjJfCER0OWUCE271npCWc omInFVhWsmqjRr4VKbndggzaTqhD6FLfznHTRAdvFA+BDRTQrNRl4pBHiwdqLxKu kb/NB1LeH5iDZcLuMkDIY7jVeKrHDAg7ALZi65Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=va9zds 2kkUShR4/2SREiF7f/aOZtuH3Ys0/FEp1ZZwk=; b=O4z1YV2ZcKXlyoADN68i23 fUWjLMPJSxjjrRkBoFgZfVXyFpLVKUdJ2SCkWjXAW8tDpCxh2KA0TQ9MoOF/HKRc yJTW8o05RhhK4QkGB+utHy2CrVKHoUOg19Rv1AiYXlSU1g6snDXKy0Jp85UCyVrq 5BrNdunwfP3AH4ygvU/2X1J2s5iDgvMHtpgww2UsTIY03Svvt2ZSXtiXdqu+TTZx BMWYb+c41h8ePkOmieAulbCZ0DeQhWrCmFZboQ7vp+XhOjjJTBj7GU3wqXVXJO6K m3DIGYhkyxN72TEnNcFGIhWJcIoriJSMDkORVOdJbjEsxFgNqmLhTs9w9Ke9yItg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudejgedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuffhomh grihhnpehlkhhmlhdrohhrghenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvgif segrjhdrihgurdgruhenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D3C7AE00A2; Sun, 1 Dec 2019 21:58:31 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-578-g826f590-fmstable-20191119v1 Mime-Version: 1.0 Message-Id: <23d79dff-6577-4fba-b7e6-d494ec7b8a93@www.fastmail.com> In-Reply-To: <20191129172537.31410-3-m.felsch@pengutronix.de> References: <20191129172537.31410-1-m.felsch@pengutronix.de> <20191129172537.31410-3-m.felsch@pengutronix.de> Date: Mon, 02 Dec 2019 13:30:04 +1030 From: "Andrew Jeffery" To: "Marco Felsch" , support.opensource@diasemi.com, "Lee Jones" , "Rob Herring" , "Linus Walleij" , "Bartosz Golaszewski" , "Joel Stanley" , lgirdwood@gmail.com, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, "Pengutronix Kernel Team" Subject: =?UTF-8?Q?Re:_[PATCH_v3_2/6]_gpio:_make_gpiod=5Fto=5Foffset()_available_?= =?UTF-8?Q?for_other_users?= Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 30 Nov 2019, at 03:55, Marco Felsch wrote: > Currently gpiod_to_offset() is a gpio-subsystem private function which > is used by the gpiolib itself and by the aspeed gpio driver. The time > has shown that there are other drivers as well which need this > information in some special cases e.g. MFD drivers. The patch makes the > function public but you need to explicit add the > include. See discussion [1] for more information. > > [1] https://lkml.org/lkml/2019/11/27/357 > > Signed-off-by: Marco Felsch > --- > v3: > - former patch description was "gpio: add support to get local gpio number" > - adapt commit message and description to reflect new state > - don't add wrapper instead use the already existing gpiod_to_offset > - move gpiod_to_offset from gpiolib.h into gpiolib.c > - move declaration into linux/gpio/private.h > --- > drivers/gpio/gpio-aspeed.c | 11 +++++------ Reviewed-by: Andrew Jeffery