Home
last modified time | relevance | path

Searched refs:line_names (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpio-mockup.c508 char **line_names = NULL; in gpio_mockup_register_chip() local
528 line_names = kasprintf_strarray(GFP_KERNEL, chip_label, ngpio); in gpio_mockup_register_chip()
529 if (!line_names) in gpio_mockup_register_chip()
533 "gpio-line-names", line_names, ngpio); in gpio_mockup_register_chip()
538 kfree_strarray(line_names, ngpio); in gpio_mockup_register_chip()
547 kfree_strarray(line_names, ngpio); in gpio_mockup_register_chip()
H A Dgpio-sim.c705 gpio_sim_set_line_names(struct gpio_sim_bank *bank, char **line_names) in gpio_sim_set_line_names() argument
713 line_names[line->offset] = line->name; in gpio_sim_set_line_names()
819 char **line_names __free(kfree) = NULL; in gpio_sim_make_bank_swnode()
831 line_names = kcalloc(line_names_size, sizeof(*line_names), in gpio_sim_make_bank_swnode()
833 if (!line_names) in gpio_sim_make_bank_swnode()
836 gpio_sim_set_line_names(bank, line_names); in gpio_sim_make_bank_swnode()
840 line_names, line_names_size); in gpio_sim_make_bank_swnode()