Lines Matching refs:mux_node
335 struct device_node *mux_node, *child = NULL; in i2c_mux_add_adapter() local
339 mux_node = of_get_child_by_name(dev_node, "i2c-arb"); in i2c_mux_add_adapter()
341 mux_node = of_get_child_by_name(dev_node, "i2c-gate"); in i2c_mux_add_adapter()
343 mux_node = of_get_child_by_name(dev_node, "i2c-mux"); in i2c_mux_add_adapter()
345 if (mux_node) { in i2c_mux_add_adapter()
347 if (!of_property_read_u32(mux_node, "reg", ®)) { in i2c_mux_add_adapter()
348 of_node_put(mux_node); in i2c_mux_add_adapter()
349 mux_node = NULL; in i2c_mux_add_adapter()
353 if (!mux_node) in i2c_mux_add_adapter()
354 mux_node = of_node_get(dev_node); in i2c_mux_add_adapter()
356 child = of_node_get(mux_node); in i2c_mux_add_adapter()
359 for_each_child_of_node(mux_node, child) { in i2c_mux_add_adapter()
369 of_node_put(mux_node); in i2c_mux_add_adapter()