mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 00:58:07 -04:00
Merge tag 'gpio-set-array-helper-v6.15-rc1' into togreg
add gpiod_multi_set_value_cansleep() to GPIO core
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#define __LINUX_GPIO_CONSUMER_H
|
||||
|
||||
#include <linux/bits.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct acpi_device;
|
||||
@@ -655,4 +656,14 @@ static inline void gpiod_unexport(struct gpio_desc *desc)
|
||||
|
||||
#endif /* CONFIG_GPIOLIB && CONFIG_GPIO_SYSFS */
|
||||
|
||||
static inline int gpiod_multi_set_value_cansleep(struct gpio_descs *descs,
|
||||
unsigned long *value_bitmap)
|
||||
{
|
||||
if (IS_ERR_OR_NULL(descs))
|
||||
return PTR_ERR_OR_ZERO(descs);
|
||||
|
||||
return gpiod_set_array_value_cansleep(descs->ndescs, descs->desc,
|
||||
descs->info, value_bitmap);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user