w1-gpio.h 493 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * w1-gpio interface to platform code
  4. *
  5. * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
  6. */
  7. #ifndef _LINUX_W1_GPIO_H
  8. #define _LINUX_W1_GPIO_H
  9. struct gpio_desc;
  10. /**
  11. * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
  12. */
  13. struct w1_gpio_platform_data {
  14. struct gpio_desc *gpiod;
  15. struct gpio_desc *pullup_gpiod;
  16. void (*enable_external_pullup)(int enable);
  17. unsigned int pullup_duration;
  18. };
  19. #endif /* _LINUX_W1_GPIO_H */