We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2014c95 + 91931af commit 76256c6Copy full SHA for 76256c6
include/linux/gpio/consumer.h
@@ -3,6 +3,7 @@
3
#define __LINUX_GPIO_CONSUMER_H
4
5
#include <linux/bits.h>
6
+#include <linux/err.h>
7
#include <linux/types.h>
8
9
struct acpi_device;
@@ -655,4 +656,14 @@ static inline void gpiod_unexport(struct gpio_desc *desc)
655
656
657
#endif /* CONFIG_GPIOLIB && CONFIG_GPIO_SYSFS */
658
659
+static inline int gpiod_multi_set_value_cansleep(struct gpio_descs *descs,
660
+ unsigned long *value_bitmap)
661
+{
662
+ if (IS_ERR_OR_NULL(descs))
663
+ return PTR_ERR_OR_ZERO(descs);
664
+
665
+ return gpiod_set_array_value_cansleep(descs->ndescs, descs->desc,
666
+ descs->info, value_bitmap);
667
+}
668
669
#endif
0 commit comments