Page MenuHomeFreeBSD

regulator_fixed: Add a get_voltage method
ClosedPublic

Authored by manu on Jan 2 2020, 3:27 PM.
Tags
None
Referenced Files
F81684695: D23003.diff
Fri, Apr 19, 10:06 PM
Unknown Object (File)
Fri, Apr 5, 9:17 PM
Unknown Object (File)
Feb 9 2024, 2:05 AM
Unknown Object (File)
Nov 12 2023, 10:15 AM
Unknown Object (File)
Nov 12 2023, 8:24 AM
Unknown Object (File)
Nov 10 2023, 8:16 AM
Unknown Object (File)
Nov 5 2023, 4:21 AM
Unknown Object (File)
Oct 30 2023, 6:14 PM
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 Not Applicable
Unit
Tests Not Applicable

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.