Lines Matching full:lookup
46 static void arizona_spi_acpi_remove_lookup(void *lookup) in arizona_spi_acpi_remove_lookup() argument
48 gpiod_remove_lookup_table(lookup); in arizona_spi_acpi_remove_lookup()
54 struct gpiod_lookup_table *lookup; in arizona_spi_acpi_windows_probe() local
62 lookup = devm_kzalloc(arizona->dev, in arizona_spi_acpi_windows_probe()
63 struct_size(lookup, table, ARRAY_SIZE(arizona_soc_gpios) + 1), in arizona_spi_acpi_windows_probe()
65 if (!lookup) in arizona_spi_acpi_windows_probe()
68 lookup->dev_id = dev_name(arizona->dev); in arizona_spi_acpi_windows_probe()
69 memcpy(lookup->table, arizona_soc_gpios, sizeof(arizona_soc_gpios)); in arizona_spi_acpi_windows_probe()
71 gpiod_add_lookup_table(lookup); in arizona_spi_acpi_windows_probe()
72 ret = devm_add_action_or_reset(arizona->dev, arizona_spi_acpi_remove_lookup, lookup); in arizona_spi_acpi_windows_probe()
92 * lookup table. in arizona_spi_acpi_android_probe()
99 "Deferring probe till GPIO lookup is registered\n"); in arizona_spi_acpi_android_probe()