From patchwork Tue Apr 22 12:43:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 28777 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC250203AC for ; Tue, 22 Apr 2014 12:43:49 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i4sf24704515oah.8 for ; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) 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=5BZAhw0BcPV5FKAucNSBeIl8syVZ6oRW3NCnR6cPnAM=; b=GKTzrxQfhfbiA75sOsZpVc3I9zCDymHEG/EJQsUINCyAMzTPdSn/iFknBGxTstv+2n cFBjTqn+S9vYRVRZLcPpUE/6vtZ5dFg5wwOePiFxQr/D/ajy2O7m2Xg8nKuBWy9oFbu8 6pwdvD/k49wVCD1hKJd/81DbFs3pnmlru5hrpTsBtAOVKwQkwJy4kx7yJU33wEAuWwa/ te38l3WfVYbT/3/zGCBConAFUMGnbDHenmDRTGJU34OqJ99lTH+HX4blTFQ9AeXLdkGA CXzkbnBRq7CEtwuDn+tI0JsvAuRByClciv7z38pj8PHWcHL5dXV3cD7SK2ZRm+CL1Uqc yGRg== X-Gm-Message-State: ALoCoQkk0Snn2UjNvKCrYyLeQiymzb2GfkUQK3FduH6beF02F4QsUhaQyLxmqb9sQ7cKfGhQ/Opw X-Received: by 10.182.236.132 with SMTP id uu4mr22020829obc.14.1398170629535; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.164 with SMTP id s33ls67850qge.57.gmail; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) X-Received: by 10.52.163.145 with SMTP id yi17mr141962vdb.46.1398170629368; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id xt2si6871337vcb.141.2014.04.22.05.43.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Apr 2014 05:43:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so2582976vcb.28 for ; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr438464vcm.34.1398170629239; Tue, 22 Apr 2014 05:43:49 -0700 (PDT) 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.221.72 with SMTP id ib8csp21625vcb; Tue, 22 Apr 2014 05:43:48 -0700 (PDT) X-Received: by 10.68.134.198 with SMTP id pm6mr44624599pbb.9.1398170628508; Tue, 22 Apr 2014 05:43:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si22747474pas.426.2014.04.22.05.43.47; Tue, 22 Apr 2014 05:43:47 -0700 (PDT) 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 S932215AbaDVMnr (ORCPT + 1 other); Tue, 22 Apr 2014 08:43:47 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:62306 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932152AbaDVMnr (ORCPT ); Tue, 22 Apr 2014 08:43:47 -0400 Received: by mail-wg0-f49.google.com with SMTP id a1so3897670wgh.20 for ; Tue, 22 Apr 2014 05:43:46 -0700 (PDT) X-Received: by 10.180.188.134 with SMTP id ga6mr18404278wic.58.1398170625954; Tue, 22 Apr 2014 05:43:45 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id rx9sm61744432wjb.20.2014.04.22.05.43.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Apr 2014 05:43:45 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij Subject: [PATCH] gpiolib: of: remove gpio_to_desc() usage Date: Tue, 22 Apr 2014 14:43:41 +0200 Message-Id: <1398170621-2685-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.0 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.220.169 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: , As demonstrated by commit 390d82e312c56b75407a3606cbcde8c4bc7f10ae "gpiolib: ACPI: remove gpio_to_desc() usage" gpio_to_desc() must die. Replace one of its usage by the newly-introduced gpiochip_get_desc() function. Cc: Alexandre Courbot Signed-off-by: Linus Walleij Reviewed-by: Alexandre Courbot --- drivers/gpio/gpiolib-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 2024d45e5503..db98d3a12f70 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -48,7 +48,7 @@ static int of_gpiochip_find_and_xlate(struct gpio_chip *gc, void *data) if (ret < 0) return false; - gg_data->out_gpio = gpio_to_desc(ret + gc->base); + gg_data->out_gpio = gpiochip_get_desc(gc, ret); return true; }