projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0debb3
)
gpio: replace __maybe_unused in gpiolib.h with static inline
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Tue, 11 Jul 2017 14:41:43 +0000
(23:41 +0900)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib.h
b/drivers/gpio/gpiolib.h
index
a8be286
..
d003ccb
100644
(file)
--- 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 in
t __maybe_unused
gpio_chip_hwgpio(const struct gpio_desc *desc)
+static in
line int
gpio_chip_hwgpio(const struct gpio_desc *desc)
{
return desc - &desc->gdev->descs[0];
}