]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gpio: replace __maybe_unused in gpiolib.h with static inline
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 11 Jul 2017 14:41:43 +0000 (23:41 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000 (15:01 +0200)
In header files, static inline is more commonly used.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.h

index a8be286eff86f6d88bcad63787a7b80641faaa15..d003ccb127816cc668a586819fa949340114da82 100644 (file)
@@ -219,7 +219,7 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
 /*
  * Return the GPIO number of the passed descriptor relative to its chip
  */
-static int __maybe_unused gpio_chip_hwgpio(const struct gpio_desc *desc)
+static inline int gpio_chip_hwgpio(const struct gpio_desc *desc)
 {
        return desc - &desc->gdev->descs[0];
 }