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: 2862071 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 5FC3F9F2D6 for ; Mon, 9 Sep 2013 15:43:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 54B70203DA for ; Mon, 9 Sep 2013 15:43:19 +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 088C8202EB for ; Mon, 9 Sep 2013 15:43:18 +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 1VJ3b2-0002UA-9o; Mon, 09 Sep 2013 15:41:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJ3aX-0001hm-B1; Mon, 09 Sep 2013 15:41:17 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJ3aN-0001e0-P7 for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2013 15:41:08 +0000 Received: by mail-la0-f53.google.com with SMTP id el20so4946896lab.26 for ; Mon, 09 Sep 2013 08:40:45 -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=USp4Y2cccF9Ny29DMWUlqMmaOwQBy3HxnqymHkY525M=; b=M9dHi2HjTnez3zftgG1wT4svJvrJWcDQP+eYmE4XMdKcd/IB8HZKEB0ohnATRJtsRr mYMyI+4+c/5pV2ZqhfHoKm90zJtAWyYVlyCH8w6XjV4IIl11tGA28ZNsNfhPomcgwfPT AqqDXp9fUkJ1XWeJ4gALWjwR1/aCuss0l1R4Qus7pCLLzwv9nbRXlk4RCRDfTbft9Y5f WW2hMUP3zeyrJHwWI+iy8GlBke7jFR1Y6Besi7o0j+WAf6ZXI02sHVC4nY6OtMLhcH7L ovVrs6GEri6Z4JAz7krMnpuySi/qMSLXiyOaoMyA/BymMnakqw+Y3uEpuiHE1d69EPRR Y5DQ== X-Gm-Message-State: ALoCoQm4TwmbP+/FQNvp1WboBXnTsMQqRTI6a+jiWauCxevqdzbTWH95mY+bnICc7hqmsQ2uh9QR 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130909_114107_979366_55F8B07D X-CRM114-Status: GOOD ( 10.97 ) 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=-5.1 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: 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) {