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

Function rt_regulator_put

components/drivers/regulator/regulator.c:620–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void rt_regulator_put(struct rt_regulator *reg)
621{
622 if (!reg)
623 {
624 return;
625 }
626
627 rt_ref_put(&reg->reg_np->ref, &regulator_release);
628 rt_free(reg);
629}

Callers 1

pwm_fan_cool_freeFunction · 0.85

Calls 2

rt_ref_putFunction · 0.85
rt_freeFunction · 0.85

Tested by

no test coverage detected