H A D | gpiolib-of.c | 29 * @con_id: Function within the GPIO consumer 38 static int of_gpio_spi_cs_get_count(struct device *dev, const char *con_id) in of_gpio_spi_cs_get_count() argument 45 if (!con_id || strcmp(con_id, "cs")) { in of_gpio_spi_cs_get_count() 61 int of_gpio_get_count(struct device *dev, const char *con_id) in of_gpio_get_count() argument 67 ret = of_gpio_spi_cs_get_count(dev, con_id); in of_gpio_get_count() 73 if (con_id) { in of_gpio_get_count() 74 snprintf(propname, sizeof(propname), "%s-%s", con_id, gpio_suffixes[i]); in of_gpio_get_count() 367 static struct gpio_desc *of_find_spi_gpio(struct device *dev, const char *con_id, enum of_gpio_flags *of_flags) in of_find_spi_gpio() argument 382 if (!of_device_is_compatible(np, "spi-gpio") || !con_id) { in of_find_spi_gpio() 398 of_find_spi_cs_gpio(struct device *dev, const char *con_id, unsigned int idx, unsigned long *flags) of_find_spi_cs_gpio() argument 430 of_find_regulator_gpio(struct device *dev, const char *con_id, enum of_gpio_flags *of_flags) of_find_regulator_gpio() argument 459 of_find_arizona_gpio(struct device *dev, const char *con_id, enum of_gpio_flags *of_flags) of_find_arizona_gpio() argument 472 of_find_usb_gpio(struct device *dev, const char *con_id, enum of_gpio_flags *of_flags) of_find_usb_gpio() argument 490 of_find_gpio(struct device *dev, const char *con_id, unsigned int idx, unsigned long *flags) of_find_gpio() argument [all...] |