From: Masahiro Yamada Date: Tue, 11 Jul 2017 14:41:43 +0000 (+0900) Subject: gpio: replace __maybe_unused in gpiolib.h with static inline X-Git-Tag: v4.14-rc1~141^2~58 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=4a5c886e7cc913b60b68825846cd43dcfe7a2be0;p=linux.git gpio: replace __maybe_unused in gpiolib.h with static inline In header files, static inline is more commonly used. Signed-off-by: Masahiro Yamada Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index a8be286eff86..d003ccb12781 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -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]; }