MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_set_enabled

Function dtb_node_set_enabled

components/legacy/fdt/src/dtb_base.c:436–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436int dtb_node_set_enabled(const struct dtb_node *node, rt_bool_t value)
437{
438 if (!dtb_node_active())
439 return -ENOSYS;
440
441 RT_ASSERT(dtb_node_valid(node));
442
443 if (value)
444 return dtb_node_write_string(node, "status", "okay");
445 else
446 return dtb_node_write_string(node, "status", "disable");
447}
448
449/**
450 * dtb_node_irq_find_parent - Given a device node, find its interrupt parent node

Callers

nothing calls this directly

Calls 3

dtb_node_activeFunction · 0.85
dtb_node_validFunction · 0.85
dtb_node_write_stringFunction · 0.85

Tested by

no test coverage detected