Home
last modified time | relevance | path

Searched refs:gpio_count (Results 1 – 5 of 5) sorted by relevance

/drivers/hsi/clients/
Dnokia-modem.c76 int gpio_count, gpio_name_count, i, err; in nokia_modem_gpio_probe() local
78 gpio_count = of_gpio_count(np); in nokia_modem_gpio_probe()
80 if (gpio_count < 0) { in nokia_modem_gpio_probe()
81 dev_err(dev, "missing gpios: %d\n", gpio_count); in nokia_modem_gpio_probe()
82 return gpio_count; in nokia_modem_gpio_probe()
87 if (gpio_count != gpio_name_count) { in nokia_modem_gpio_probe()
92 modem->gpios = devm_kcalloc(dev, gpio_count, sizeof(*modem->gpios), in nokia_modem_gpio_probe()
97 modem->gpio_amount = gpio_count; in nokia_modem_gpio_probe()
99 for (i = 0; i < gpio_count; i++) { in nokia_modem_gpio_probe()
/drivers/input/rmi4/
Drmi_f3a.c25 u8 gpio_count; member
85 for (i = 0; i < f3a->gpio_count; i++) in rmi_f3a_attention()
132 int button_count = min_t(u8, f3a->gpio_count, TRACKSTICK_RANGE_END); in rmi_f3a_map_gpios()
159 input->keycodemax = f3a->gpio_count; in rmi_f3a_map_gpios()
181 f3a->gpio_count = buf & RMI_F3A_GPIO_COUNT; in rmi_f3a_initialize()
182 f3a->register_count = DIV_ROUND_UP(f3a->gpio_count, 8); in rmi_f3a_initialize()
/drivers/input/touchscreen/
Dgoodix.c105 int gpio_count; member
767 ts->gpio_int_idx = ts->gpio_count; in goodix_resource()
773 ts->gpio_count++; in goodix_resource()
796 ts->gpio_count = 0; in goodix_add_acpi_gpio_mappings()
807 if (ts->gpio_count == 2 && ts->gpio_int_idx == 0) { in goodix_add_acpi_gpio_mappings()
810 } else if (ts->gpio_count == 2 && ts->gpio_int_idx == 1) { in goodix_add_acpi_gpio_mappings()
813 } else if (ts->gpio_count == 1 && ts->gpio_int_idx == -1 && in goodix_add_acpi_gpio_mappings()
819 } else if (is_byt() && ts->gpio_count == 2 && ts->gpio_int_idx == -1) { in goodix_add_acpi_gpio_mappings()
823 } else if (ts->gpio_count == 1 && ts->gpio_int_idx == 0) { in goodix_add_acpi_gpio_mappings()
844 ts->gpio_count, ts->gpio_int_idx); in goodix_add_acpi_gpio_mappings()
/drivers/spi/
Dspi-tle62x0.c257 st->nr_gpio = pdata->gpio_count; in tle62x0_probe()
268 for (ptr = 0; ptr < pdata->gpio_count; ptr++) { in tle62x0_probe()
/drivers/bluetooth/
Dhci_bcm.c108 int gpio_count; member
914 dev->gpio_int_idx = dev->gpio_count; in bcm_resource()
917 dev->gpio_count++; in bcm_resource()
1124 if (dev->gpio_count != (dev->irq ? 2 : 3)) in bcm_acpi_probe()
1126 dev->gpio_count); in bcm_acpi_probe()