summaryrefslogtreecommitdiff
path: root/board/alliedtelesis/common/gpio_hog.h
blob: edb74431318693ed4db910b65eb135505c4c9c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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);
}