Lines Matching full:names
18 * devprop_gpiochip_set_names - Set GPIO line names using device properties
20 * @fwnode: Property Node containing the gpio-line-names property
22 * Looks for device property "gpio-line-names" and if it exists assigns
23 * GPIO line names for the chip. The memory allocated for the assigned
24 * names belong to the underlying firmware node and should not be released
31 const char **names; in devprop_gpiochip_set_names() local
35 count = fwnode_property_read_string_array(fwnode, "gpio-line-names", in devprop_gpiochip_set_names()
43 names = kcalloc(count, sizeof(*names), GFP_KERNEL); in devprop_gpiochip_set_names()
44 if (!names) in devprop_gpiochip_set_names()
47 ret = fwnode_property_read_string_array(fwnode, "gpio-line-names", in devprop_gpiochip_set_names()
48 names, count); in devprop_gpiochip_set_names()
50 dev_warn(&gdev->dev, "failed to read GPIO line names\n"); in devprop_gpiochip_set_names()
51 kfree(names); in devprop_gpiochip_set_names()
56 gdev->descs[i].name = names[i]; in devprop_gpiochip_set_names()
58 kfree(names); in devprop_gpiochip_set_names()