2
0
Fork 0
mirror of https://github.com/AsahiLinux/u-boot synced 2025-01-04 17:28:54 +00:00
u-boot/board/alliedtelesis/common/gpio_hog.h

14 lines
392 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2017 Allied Telesis Labs
*/
int gpio_hog_list(struct gpio_desc *gpiod, int max_count, const char *node_name,
const char *gpio_name, int value);
static inline int gpio_hog(struct gpio_desc *gpiod, const char *node_name,
const char *gpio_name, int value)
{
return gpio_hog_list(gpiod, 1, node_name, gpio_name, value);
}