From patchwork Fri Mar 7 02:15:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 25857 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7F977203C3 for ; Fri, 7 Mar 2014 02:16:08 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf13125396iec.0 for ; Thu, 06 Mar 2014 18:16:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=rGwf5HsgZ29/U4IYWQubPWqzvLlrebnbGTV1984sqds=; b=HYIcBxds0d3ElgpBgniFTfDH14dbclZKDblguudUPC8Uh9j8ESwxkavnJBZhNtltxY lDgtJguIBp2Fem/UizYP1k8Vk5HVik1T1ooT9hDpX9R3gF+2kbETuwhNSWEkrzony/az kJaXgiY/AZdJot0YzkhA9Zwa2YFiSKHtgstzqTY6V8kLTEezE4hg+nFfgK9Drkt+XiEd fF9CWyhOvPCy4dhGOq9UUO8Gd7AnWQvrZ4zdLTSk6NHFr21gaSWyVSxevnBof0M/9Y8M ryZgq1HjVuiMHP/9FfPAWUMa/dLAxOT9AvykQShrOX8Gjcgq0GbW3/W3BOXTx+as0tu3 C+rA== X-Gm-Message-State: ALoCoQldjBCp9cE9RGOpixYi4FjUgyrh11Aadzukso227aI8TGHMzKhP1VbG0VFJRCfEeTTHjBhO X-Received: by 10.50.47.6 with SMTP id z6mr232244igm.4.1394158567882; Thu, 06 Mar 2014 18:16:07 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.169 with SMTP id j38ls962606qgd.10.gmail; Thu, 06 Mar 2014 18:16:07 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr7749079vcb.22.1394158567713; Thu, 06 Mar 2014 18:16:07 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id ry8si2443034vdc.6.2014.03.06.18.16.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 18:16:07 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so3524358veb.22 for ; Thu, 06 Mar 2014 18:16:07 -0800 (PST) X-Received: by 10.58.200.168 with SMTP id jt8mr150817vec.30.1394158567626; Thu, 06 Mar 2014 18:16:07 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp81561vck; Thu, 6 Mar 2014 18:16:07 -0800 (PST) X-Received: by 10.68.197.8 with SMTP id iq8mr18521358pbc.124.1394158566813; Thu, 06 Mar 2014 18:16:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qy5si6644746pab.340.2014.03.06.18.16.06; Thu, 06 Mar 2014 18:16:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbaCGCQG (ORCPT + 1 other); Thu, 6 Mar 2014 21:16:06 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:38087 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751003AbaCGCQF (ORCPT ); Thu, 6 Mar 2014 21:16:05 -0500 Received: by mail-pd0-f174.google.com with SMTP id y13so3342336pdi.5 for ; Thu, 06 Mar 2014 18:16:04 -0800 (PST) X-Received: by 10.66.232.68 with SMTP id tm4mr18444480pac.114.1394158564043; Thu, 06 Mar 2014 18:16:04 -0800 (PST) Received: from localhost.localdomain (z88l218.static.ctm.net. [202.175.88.218]) by mx.google.com with ESMTPSA id ha11sm25087901pbd.17.2014.03.06.18.16.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Mar 2014 18:16:03 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Thomas Gleixner , Linus Walleij , Jean-Jacques Hiblot Subject: [PATCH] gpio: remove misleading documentation Date: Fri, 7 Mar 2014 10:15:55 +0800 Message-Id: <1394158555-22114-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.5.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It is currently debated where the functions to lock a certain GPIO line as used for IRQs should be called. Delete all misleading documentation. Reported-by: Thomas Gleixner Cc: Jean-Jacques Hiblot Signed-off-by: Linus Walleij Acked-by: Alexandre Courbot Reviewed-by: Thomas Gleixner --- drivers/gpio/gpiolib.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 9cd7082cca08..aa6a11b452e2 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -2167,10 +2167,7 @@ EXPORT_SYMBOL_GPL(gpiod_to_irq); * @gpio: the GPIO line to lock as used for IRQ * * This is used directly by GPIO drivers that want to lock down - * a certain GPIO line to be used as IRQs, for example in the - * .to_irq() callback of their gpio_chip, or in the .irq_enable() - * of its irq_chip implementation if the GPIO is known from that - * code. + * a certain GPIO line to be used for IRQs. */ int gpiod_lock_as_irq(struct gpio_desc *desc) {