mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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>
This commit is contained in:
parent
c0debb3d68
commit
4a5c886e7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue