diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-11 23:41:43 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 15:01:12 +0200 |
commit | 4a5c886e7cc913b60b68825846cd43dcfe7a2be0 (patch) | |
tree | bdc08b5de1b9488c472a02e5a4c70a03939d7fad /drivers | |
parent | c0debb3d68c3dc63f6565943b316019597587d7a (diff) | |
download | linux-4a5c886e7cc913b60b68825846cd43dcfe7a2be0.tar.bz2 |
gpio: replace __maybe_unused in gpiolib.h with static inline
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpiolib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |