Skip to content
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: fix error case in regulator_supported_voltages() + split asserts #6784

Merged
merged 2 commits into from
May 21, 2024

Commits on Apr 17, 2024

  1. drivers: regulator: fix error case in regulator_supported_voltages()

    Fix case when .supported_voltages() handler is supported. If successful
    it shall assert voltage description data. If it returns
    TEE_ERROR_NOT_SUPPORTED, it shall use the pre-filled fallback description.
    
    Fixes: af5b988 ("drivers: regulator: supported voltage consider levels bounds")
    Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
    Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
    Acked-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
    etienne-lms committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    6b0921f View commit details
    Browse the repository at this point in the history
  2. drivers: regulator: split regulator_supported_voltages() assertions

    Split assertions in regulator_supported_voltages() to ease debugging,
    providing a better indication of which condition is not fulfilled.
    
    Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
    Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
    Acked-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
    etienne-lms committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    d16c97d View commit details
    Browse the repository at this point in the history