-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: regulator: API to get max regulator voltage #80029
drivers: regulator: API to get max regulator voltage #80029
Conversation
cd1c094
to
203bdd8
Compare
@gmarull @danieldegrasse @aasinclair Fixed title and commit message (this is on the regulator API, not i2c, but for some reason my brain made me type i2c...) Hope all the automatic tags are correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this needed/used? These are internal APIs
0a6696c
to
ecf18a1
Compare
Good point. I've added two more commits, for a total of three:
Now it's used in the tests Regarding for where this is needed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, introduce any formatting changes in a separate commit.
There is already a get_min_voltage() API, so let us add an API to also query the max voltage Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
ecf18a1
to
956ea3b
Compare
Adds unit tests to make sure get_max and get_min voltage remain healthy Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
Linter pass makes CI happy and keeps code compliant with the stylistic guidelines of the project Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
956ea3b
to
996542d
Compare
Good catch! I thought I had three commits. My bad, now I've actually split the changes into the three commits mentioned above |
There is already a regulator_common_get_min_voltage() API, to query the maximum supported voltage on a regulator. This change adds an analogous and symmetric API to query the maximum supported voltage