Lines Matching full:layout
8 * Inspired by the first layout written by: Rafał Miłecki <rafal@milecki.pl>
102 struct device_node *layout; in onie_tlv_add_cells() local
108 layout = of_nvmem_layout_get_container(nvmem); in onie_tlv_add_cells()
109 if (!layout) in onie_tlv_add_cells()
126 cell.np = of_get_child_by_name(layout, cell.name); in onie_tlv_add_cells()
131 of_node_put(layout); in onie_tlv_add_cells()
138 of_node_put(layout); in onie_tlv_add_cells()
185 static int onie_tlv_parse_table(struct nvmem_layout *layout) in onie_tlv_parse_table() argument
187 struct nvmem_device *nvmem = layout->nvmem; in onie_tlv_parse_table()
188 struct device *dev = &layout->dev; in onie_tlv_parse_table()
230 static int onie_tlv_probe(struct nvmem_layout *layout) in onie_tlv_probe() argument
232 layout->add_cells = onie_tlv_parse_table; in onie_tlv_probe()
234 return nvmem_layout_register(layout); in onie_tlv_probe()
237 static void onie_tlv_remove(struct nvmem_layout *layout) in onie_tlv_remove() argument
239 nvmem_layout_unregister(layout); in onie_tlv_remove()
243 { .compatible = "onie,tlv-layout", },
250 .name = "onie-tlv-layout",
260 MODULE_DESCRIPTION("NVMEM layout driver for Onie TLV table parsing");