Page MenuHomeFreeBSD

regulator: Add regulator_check_voltage function
ClosedPublic

Authored by manu on Wed, Nov 6, 2:29 PM.

Details

Summary

This function will call the regnode_check_voltage method for a given regulator and check
if the desired voltage in reachable by it.
Also adds a default method that check the std_param and which should be enough
for most regulators and add it as the method for axp* rk805 and fixed regulators.

Test Plan

Tested on Pine64-LTS and NanoPi-M1-Plus

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

manu created this revision.Wed, Nov 6, 2:29 PM
manu updated this revision to Diff 63998.Wed, Nov 6, 2:47 PM
manu edited the summary of this revision. (Show Details)
mmel accepted this revision.Wed, Nov 6, 2:49 PM

LGTM

This revision is now accepted and ready to land.Wed, Nov 6, 2:49 PM
This revision was automatically updated to reflect the committed changes.