From patchwork Fri Sep 20 20:17:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 20485 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E64425DFC for ; Fri, 20 Sep 2013 20:17:53 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id k15sf53613qaq.2 for ; Fri, 20 Sep 2013 13:17:53 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=vq+MhoHZKSC2m7QPwHA2tNtl1N30BmIFjBSusvscVmM=; b=FRWn60bbQh+pcENvWvQJZU83MJrFjEIySjjfXE473YO32AWL1reQs+GTaGKHu7PPIP JJHjyJcrUsjBK9q5PLVCdxZMdp5rEMSx9mTPBXiuEWylE3P1RSQk1AayGscMiTnq68b1 ZT55WvuniYC693xb0fV3AoSpqVf6hbJw3M9NRmO0ODKs0Rd23vpmLHtL/WQV4zENr3eu YoegzXLrHtjVUBW6u5y6xHV73ISBxzhbtz7ESiMpp5Eb5Th1FixnEqxdfcPaF1PFXjzB CrKVRiEOeuA2/al5zZ945zv4NIyuUA674ZYwvfpZPIuWUWdKsAvrU/CG4KrHg/F8I2R4 VDLw== X-Gm-Message-State: ALoCoQmjOmYxo0BK6M8Rz4vP/M+q1i9ghGG311J55N86+T1lv4Wj9K19/ldidlOMezBikcnT3htV X-Received: by 10.236.0.232 with SMTP id 68mr3138464yhb.16.1379708273053; Fri, 20 Sep 2013 13:17:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.49.42 with SMTP id r10ls493491qen.86.gmail; Fri, 20 Sep 2013 13:17:52 -0700 (PDT) X-Received: by 10.58.108.74 with SMTP id hi10mr8231833veb.14.1379708272944; Fri, 20 Sep 2013 13:17:52 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id cp3si3373732vcb.133.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 13:17:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id hz10so672426vcb.40 for ; Fri, 20 Sep 2013 13:17:52 -0700 (PDT) X-Received: by 10.59.9.138 with SMTP id ds10mr8185528ved.5.1379708272852; Fri, 20 Sep 2013 13:17:52 -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 u4csp36803vcz; Fri, 20 Sep 2013 13:17:52 -0700 (PDT) X-Received: by 10.14.214.136 with SMTP id c8mr12999379eep.6.1379708271812; Fri, 20 Sep 2013 13:17:51 -0700 (PDT) Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by mx.google.com with ESMTPS id 7si12685488eeo.49.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 13:17:51 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.51 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=74.125.83.51; Received: by mail-ee0-f51.google.com with SMTP id c1so482709eek.24 for ; Fri, 20 Sep 2013 13:17:51 -0700 (PDT) X-Received: by 10.14.8.72 with SMTP id 48mr13079218eeq.25.1379708271275; Fri, 20 Sep 2013 13:17:51 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id i1sm21980765eeg.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 20 Sep 2013 13:17:50 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Lennert Buytenhek , Dan Williams , Mikael Pettersson , Aaro Koskinen Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH 4/8] gpio: decouple the IOP GPIO driver from platform Date: Fri, 20 Sep 2013 22:17:47 +0200 Message-Id: <1379708267-7968-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.220.181 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: Aaro Koskinen 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) {