blob: edb74431318693ed4db910b65eb135505c4c9c1e [file] [log] [blame]
Chris Packhamb55b2c92019-01-10 21:01:00 +13001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2017 Allied Telesis Labs
4 */
5
6int gpio_hog_list(struct gpio_desc *gpiod, int max_count, const char *node_name,
7 const char *gpio_name, int value);
8
9static inline int gpio_hog(struct gpio_desc *gpiod, const char *node_name,
10 const char *gpio_name, int value)
11{
12 return gpio_hog_list(gpiod, 1, node_name, gpio_name, value);
13}