Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1685098 > unrolled thread

[PATCH] gpio: replace __maybe_unused in gpiolib.h with static inline

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2017-07-11 16:50 +0200
Last post2017-07-11 16:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] gpio: replace __maybe_unused in gpiolib.h with static inline Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-07-11 16:50 +0200

#1685098 — [PATCH] gpio: replace __maybe_unused in gpiolib.h with static inline

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-07-11 16:50 +0200
Subject[PATCH] gpio: replace __maybe_unused in gpiolib.h with static inline
Message-ID<u24Eb-3xP-31@gated-at.bofh.it>
In header files, static inline is more commonly used.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/gpio/gpiolib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];
 }
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web