From patchwork Thu Nov 10 08:30:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 5023 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4771423E04 for ; Thu, 10 Nov 2011 08:30:38 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2E1FFA1814B for ; Thu, 10 Nov 2011 08:30:38 +0000 (UTC) Received: by faan26 with SMTP id n26so3649111faa.11 for ; Thu, 10 Nov 2011 00:30:38 -0800 (PST) Received: by 10.152.102.148 with SMTP id fo20mr3878515lab.51.1320913837887; Thu, 10 Nov 2011 00:30:37 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.196 with SMTP id e4cs13451lae; Thu, 10 Nov 2011 00:30:37 -0800 (PST) Received: by 10.14.8.134 with SMTP id 6mr460401eer.114.1320913836012; Thu, 10 Nov 2011 00:30:36 -0800 (PST) Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com. [207.126.144.113]) by mx.google.com with SMTP id z2si1930193eeb.7.2011.11.10.00.30.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Nov 2011 00:30:36 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKTruLphGeB43iiaoGJqKdrl7aGb3r6s1z@postini.com; Thu, 10 Nov 2011 08:30:35 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8DAFA155; Thu, 10 Nov 2011 08:30:28 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1944F1F6F; Thu, 10 Nov 2011 08:30:22 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 7904F24C07C; Thu, 10 Nov 2011 09:30:07 +0100 (CET) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 10 Nov 2011 09:30:11 +0100 From: Linus Walleij To: , Stephen Warren Cc: Grant Likely , Barry Song <21cnbao@gmail.com>, Shawn Guo , Linus Walleij Subject: [PATCH] pinctrl: documentation update Date: Thu, 10 Nov 2011 09:30:07 +0100 Message-ID: <1320913807-19928-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Linus Walleij Update the docs removing an obsolete __refdata tag and document the mysterious return value of pin_free(). Signed-off-by: Linus Walleij --- Documentation/pinctrl.txt | 2 +- drivers/pinctrl/pinmux.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt index 328adb7..a05e23b 100644 --- a/Documentation/pinctrl.txt +++ b/Documentation/pinctrl.txt @@ -59,7 +59,7 @@ this in our driver: #include -const struct pinctrl_pin_desc __refdata foo_pins[] = { +const struct pinctrl_pin_desc foo_pins[] = { PINCTRL_PIN(0, "A1"), PINCTRL_PIN(1, "A2"), PINCTRL_PIN(2, "A3"), diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 06bee1b..6738162 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -178,6 +178,10 @@ out: * @pin: the pin to free * @gpio_range: the range matching the GPIO pin if this is a request for a * single GPIO pin + * + * This function returns a pointer to the function name in use. This is used + * for callers that dynamically allocate a function name so it can be free:ed + * once the pin is free. This is done for GPIO request functions. */ static const char *pin_free(struct pinctrl_dev *pctldev, int pin, struct pinctrl_gpio_range *gpio_range)