On 16/08/12 18:00, Hauke Mehrtens wrote:
> int gpio_get_value(unsigned gpio)
> +{
> + if (gpio < bcm47xx_gpio_count)
> + return bcm47xx_gpio_in(1 << gpio);
> +
> + return __gpio_get_value(gpio);
> +}
> +EXPORT_SYMBOL(gpio_get_value);
Hi,
You are using a gpio_chip. simply doing this
#define gpio_get_value __gpio_get_value
inside your arch/mips/include/asm/mach-bcm47xx/gpio.h will be enough.
__gpio_get_value() will then automatically find and use
bcm47xx_gpio_get_value() via the gpio_chip.
John
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v2 3/3] MIPS: BCM47xx: rewrite GPIO handling and use gpiolib, Rafał Miłecki |
|---|---|
| Next by Date: | Re: [PATCH v3 6/7] mm: make clear_huge_page cache clear only around the fault address, Andrea Arcangeli |
| Previous by Thread: | Re: [PATCH v2 3/3] MIPS: BCM47xx: rewrite GPIO handling and use gpiolib, Hauke Mehrtens |
| Next by Thread: | Re: [PATCH v2 3/3] MIPS: BCM47xx: rewrite GPIO handling and use gpiolib, Hauke Mehrtens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |