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: 2921091 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 745B59F1BF for ; Fri, 20 Sep 2013 20:20:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC92520326 for ; Fri, 20 Sep 2013 20:20:45 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AD9FC20324 for ; Fri, 20 Sep 2013 20:20:44 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VN7Am-0004ec-97; Fri, 20 Sep 2013 20:19:29 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VN7AE-0004OF-5w; Fri, 20 Sep 2013 20:18:54 +0000 Received: from mail-ee0-f46.google.com ([74.125.83.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VN79Z-0004IW-47 for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2013 20:18:14 +0000 Received: by mail-ee0-f46.google.com with SMTP id c13so495175eek.33 for ; Fri, 20 Sep 2013 13:17:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vq+MhoHZKSC2m7QPwHA2tNtl1N30BmIFjBSusvscVmM=; b=cxckTx2GNeRt4Dt3bFSyEjDKfEJ1T6ThF593IhWvNB8WHX/hc+m3k5IS/rDuCb/Q4n SIiZzRdRXr2C3Pjxv/Kr9fObrYo/CJ46UOPIqzACCQ3Qk3ceBPjywl0HJMJEY+8gXnWg PWbj8jqIpgRfI2nle/xmBWfC7T/jR/liiTOfKaOJ54P2qCQF4cJusUNutd3697SD4azT dHvzNDnpzxtcT7TxueXSqBp2y0E+Uc920hulpjWEQQP0dz/nSUMxQk44FkawDKOQJ0za +6xYOA7EOskIcDPd2+hvK5ZERb6bnip2lOf59y35JB1HYXv61oVGmznnzKBn2PDqZklQ u1Vw== X-Gm-Message-State: ALoCoQm8o9ec/j074wP9SAlre4/DWb5eVju/vew78Ir0MI6gzcnsTPwABjKi0EJUBtLmxePVHv+q 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130920_161813_314539_B687568D X-CRM114-Status: GOOD ( 11.22 ) X-Spam-Score: -2.6 (--) Cc: Linus Walleij , Alexandre Courbot , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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) {