Lines Matching refs:mux_node
357 struct device_node *mux_node, *child = NULL; in i2c_mux_add_adapter() local
361 mux_node = of_get_child_by_name(dev_node, "i2c-arb"); in i2c_mux_add_adapter()
363 mux_node = of_get_child_by_name(dev_node, "i2c-gate"); in i2c_mux_add_adapter()
365 mux_node = of_get_child_by_name(dev_node, "i2c-mux"); in i2c_mux_add_adapter()
367 if (mux_node) { in i2c_mux_add_adapter()
369 if (!of_property_read_u32(mux_node, "reg", ®)) { in i2c_mux_add_adapter()
370 of_node_put(mux_node); in i2c_mux_add_adapter()
371 mux_node = NULL; in i2c_mux_add_adapter()
375 if (!mux_node) in i2c_mux_add_adapter()
376 mux_node = of_node_get(dev_node); in i2c_mux_add_adapter()
378 child = of_node_get(mux_node); in i2c_mux_add_adapter()
381 for_each_child_of_node(mux_node, child) { in i2c_mux_add_adapter()
391 of_node_put(mux_node); in i2c_mux_add_adapter()