]> Git Repo - linux.git/blobdiff - drivers/gpio/gpiolib.h
Merge tag 'gpio-updates-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / drivers / gpio / gpiolib.h
index 9c32d4ace57277a032b2414cba100b146df0f24c..30bc3f80f83e6c2a71bdb47bb9d054f9011ed175 100644 (file)
@@ -131,6 +131,8 @@ struct gpio_desc {
 #endif
 };
 
+#define gpiod_not_found(desc)          (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT)
+
 int gpiod_request(struct gpio_desc *desc, const char *label);
 void gpiod_free(struct gpio_desc *desc);
 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
This page took 0.037333 seconds and 4 git commands to generate.