gpio_hog.h 392 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2017 Allied Telesis Labs
  4. */
  5. int gpio_hog_list(struct gpio_desc *gpiod, int max_count, const char *node_name,
  6. const char *gpio_name, int value);
  7. static inline int gpio_hog(struct gpio_desc *gpiod, const char *node_name,
  8. const char *gpio_name, int value)
  9. {
  10. return gpio_hog_list(gpiod, 1, node_name, gpio_name, value);
  11. }