Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'gpio-set-array-helper-v6.15-rc1' into gpio/for-next

add gpiod_multi_set_value_cansleep() to GPIO core

+11
+11
include/linux/gpio/consumer.h
··· 3 3 #define __LINUX_GPIO_CONSUMER_H 4 4 5 5 #include <linux/bits.h> 6 + #include <linux/err.h> 6 7 #include <linux/types.h> 7 8 8 9 struct acpi_device; ··· 655 654 } 656 655 657 656 #endif /* CONFIG_GPIOLIB && CONFIG_GPIO_SYSFS */ 657 + 658 + static inline int gpiod_multi_set_value_cansleep(struct gpio_descs *descs, 659 + unsigned long *value_bitmap) 660 + { 661 + if (IS_ERR_OR_NULL(descs)) 662 + return PTR_ERR_OR_ZERO(descs); 663 + 664 + return gpiod_set_array_value_cansleep(descs->ndescs, descs->desc, 665 + descs->info, value_bitmap); 666 + } 658 667 659 668 #endif