summaryrefslogtreecommitdiff
path: root/board/alliedtelesis/common/gpio_hog.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/alliedtelesis/common/gpio_hog.h')
-rw-r--r--board/alliedtelesis/common/gpio_hog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/alliedtelesis/common/gpio_hog.h b/board/alliedtelesis/common/gpio_hog.h
new file mode 100644
index 0000000000..edb7443131
--- /dev/null
+++ b/board/alliedtelesis/common/gpio_hog.h
@@ -0,0 +1,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);
+}