From patchwork Mon Sep 9 15:40:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 19840 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 24FC925A57 for ; Mon, 9 Sep 2013 15:40:48 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf7889674yho.2 for ; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=USp4Y2cccF9Ny29DMWUlqMmaOwQBy3HxnqymHkY525M=; b=cqnVJDihVu2YnqZSzP57TAnaAg9AH00Zn3fP/GXIHzmhFK5zxXIp6+QhK6PU8JRcQO IUkbeXrFMFihubhhi/FbnyH0pCeWvPVvfxahqRQjmtkonZrojVzHucrOrLN/YnIDB4pY Q+SD6yRcRkqat2flpAAotZULMWwR6/eL4ejbGC4TGj4jrgUIpOAHS0CisBjH4/pFM8xK ueX9+3caEDcqVxXgA+rMILjs7f+oNbw8g+O8cPIx9GZVzFmnBrHB8npLQHII40WOXpvZ MTiFnu6qWwyuMCQWLyPpDdca9E+y4/QcHLFA3y/sLjMZubvZb/dgGPL1KXIJfQLzwp5/ kiag== X-Received: by 10.58.107.198 with SMTP id he6mr1435595veb.2.1378741247939; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.111 with SMTP id gd15ls1871219qeb.68.gmail; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) X-Received: by 10.52.230.102 with SMTP id sx6mr15096658vdc.15.1378741247844; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id dh7si3299458vcb.38.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Sep 2013 08:40:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id h10so3988565vbh.20 for ; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) X-Gm-Message-State: ALoCoQnzX65Emw7Fl3YEXxnyjR9uhxV0mjWqT3g5GAf0Z52XItCybTFU0gNaKwUaSTdzP3ge+9c+ X-Received: by 10.221.32.133 with SMTP id sk5mr826655vcb.27.1378741247757; Mon, 09 Sep 2013 08:40:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp94139vcz; Mon, 9 Sep 2013 08:40:47 -0700 (PDT) X-Received: by 10.112.198.39 with SMTP id iz7mr6831687lbc.24.1378741246332; Mon, 09 Sep 2013 08:40:46 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id y5si5841543lbb.162.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Sep 2013 08:40:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.182 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id c11so5264492lbj.27 for ; Mon, 09 Sep 2013 08:40:45 -0700 (PDT) X-Received: by 10.112.57.49 with SMTP id f17mr2999299lbq.26.1378741245638; Mon, 09 Sep 2013 08:40:45 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id f17sm6242802lbo.12.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Sep 2013 08:40:44 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Lennert Buytenhek , Dan Williams , Mikael Pettersson Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH 4/8] gpio: decouple the IOP GPIO driver from platform Date: Mon, 9 Sep 2013 17:40:39 +0200 Message-Id: <1378741239-12995-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 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.212.47 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This removes the only dependence between the IOP GPIO driver and the GENERIC_GPIO header in and its common implementation in the namespace by copying the one constant it is using into the driver file. Cc: Lennert Buytenhek Cc: Dan Williams Cc: Mikael Pettersson Signed-off-by: Linus Walleij --- drivers/gpio/gpio-iop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 697de6d..d4a170d 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -16,8 +16,8 @@ #include #include #include -#include -#include + +#define IOP3XX_N_GPIOS 8 void gpio_line_config(int line, int direction) {