linux-mips
[Top] [All Lists]

Re: [PATCH 3/3] MIPS: BCM47xx: rewrite GPIO handling and use gpiolib

To: linux-mips@linux-mips.org, hauke@hauke-m.de
Subject: Re: [PATCH 3/3] MIPS: BCM47xx: rewrite GPIO handling and use gpiolib
From: John Crispin <john@phrozen.org>
Date: Tue, 14 Aug 2012 14:55:44 +0200
In-reply-to: <1344165123-4640-4-git-send-email-hauke@hauke-m.de>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1344165123-4640-1-git-send-email-hauke@hauke-m.de> <1344165123-4640-4-git-send-email-hauke@hauke-m.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16
Hi Hauke,

>  int gpio_to_irq(unsigned gpio)
>  {
> @@ -99,4 +216,11 @@ int gpio_to_irq(unsigned gpio)
>       }
>       return -EINVAL;
>  }
> -EXPORT_SYMBOL_GPL(gpio_to_irq);
> +EXPORT_SYMBOL(gpio_to_irq);

can you change this to use gpio_chip.to_irq()

and then #define gpio_to_irq __gpio_to_irq    inside your gpio.h ?

Thanks,
John

<Prev in Thread] Current Thread [Next in Thread>