Lines Matching defs:con_id

29  * @con_id: Function within the GPIO consumer
38 static int of_gpio_spi_cs_get_count(struct device *dev, const char *con_id)
44 if (!con_id || strcmp(con_id, "cs"))
59 int of_gpio_get_count(struct device *dev, const char *con_id)
65 ret = of_gpio_spi_cs_get_count(dev, con_id);
70 if (con_id)
72 con_id, gpio_suffixes[i]);
372 static struct gpio_desc *of_find_spi_gpio(struct device *dev, const char *con_id,
387 if (!of_device_is_compatible(np, "spi-gpio") || !con_id)
391 snprintf(prop_name, sizeof(prop_name), "%s-%s", "gpio", con_id);
403 const char *con_id,
418 if (!con_id || strcmp(con_id, "cs"))
434 static struct gpio_desc *of_find_regulator_gpio(struct device *dev, const char *con_id,
450 if (!con_id)
453 i = match_string(whitelist, ARRAY_SIZE(whitelist), con_id);
457 desc = of_get_named_gpiod_flags(np, con_id, 0, of_flags);
462 const char *con_id,
468 if (!con_id || strcmp(con_id, "wlf,reset"))
471 return of_get_named_gpiod_flags(dev->of_node, con_id, 0, of_flags);
475 const char *con_id,
486 if (!con_id || strcmp(con_id, "fcs,int_n"))
489 return of_get_named_gpiod_flags(dev->of_node, con_id, 0, of_flags);
492 struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
502 if (con_id)
503 snprintf(prop_name, sizeof(prop_name), "%s-%s", con_id,
518 desc = of_find_spi_gpio(dev, con_id, &of_flags);
523 desc = of_find_spi_cs_gpio(dev, con_id, idx, flags);
530 desc = of_find_regulator_gpio(dev, con_id, &of_flags);
534 desc = of_find_arizona_gpio(dev, con_id, &of_flags);
537 desc = of_find_usb_gpio(dev, con_id, &of_flags);