Page MenuHomeFreeBSD

regulator_fixed: Add a get_voltage method
ClosedPublic

Authored by manu on Jan 2 2020, 3:27 PM.
Tags
None
Referenced Files
F103544533: D23003.diff
Tue, Nov 26, 8:15 AM
Unknown Object (File)
Sat, Nov 23, 1:54 AM
Unknown Object (File)
Oct 4 2024, 5:48 AM
Unknown Object (File)
Oct 3 2024, 8:52 PM
Unknown Object (File)
Oct 3 2024, 9:53 AM
Unknown Object (File)
Oct 1 2024, 11:34 PM
Unknown Object (File)
Oct 1 2024, 11:00 PM
Unknown Object (File)
Sep 30 2024, 3:26 AM
Subscribers

Details

Summary

Some consumer cannot know the voltage of the regulator without it.
While here, refuse to attach is min_voltage != max_voltage, it
shouldn't happens anyway.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This is slightly controversial. "regulator-min-microvolt" nor"regulator-max-microvolt" are not required properties for fixed regulators so we can't do this so simply. inmo,, we should monitor the presence of these properties and use this info for generate of the result.

This revision is now accepted and ready to land.Jan 6 2020, 3:32 PM

If there is no propoerties both value will be 0 and this will be ok.
If there is one there should be the other, even if it's not clear in the bindings doc I don't think that it make sense to only have one.

This revision was automatically updated to reflect the committed changes.