[PATCH 1/5] gpiolib: fix up function prototypes etc

Viresh Kumar viresh.kumar at linaro.org
Wed Nov 7 00:09:00 EST 2012


On 6 November 2012 20:46, Linus Walleij <linus.walleij at stericsson.com>wrote:

> diff --git a/include/linux/gpio.h b/include/linux/gpio.h
>


> -void gpiochip_add_pin_range(struct gpio_chip *chip, const char
> *pinctl_name,
> -               unsigned int pin_base, unsigned int npins);
> -void gpiochip_remove_pin_ranges(struct gpio_chip *chip);
> -#endif
> +#ifdef CONFIG_PINCTRL
>

Shouldn't this be ifndef??


> +static inline void
> +gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
> +                      unsigned int pin_base, unsigned int npins)
> +{
> +}
> +
> +static inline void
> +gpiochip_remove_pin_ranges(struct gpio_chip *chip)
> +{
> +}
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121107/e384fe03/attachment-0001.html>


More information about the linux-arm-kernel mailing list