diff options
author | Wentao Liang <vulab@iscas.ac.cn> | 2025-05-26 10:56:27 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-05-26 14:01:29 +0100 |
commit | 65271f868cb1dca709ff69e45939bbef8d6d0b70 (patch) | |
tree | 48b7d682b4ec0a295dbd7adb6a9c1ce306300af2 /scripts/lib/kdoc/kdoc_re.py | |
parent | dcd711021389c4d19b3310cc37f09813659dfee2 (diff) |
regulator: max14577: Add error check for max14577_read_reg()
The function max14577_reg_get_current_limit() calls the function
max14577_read_reg(), but does not check its return value. A proper
implementation can be found in max14577_get_online().
Add a error check for the max14577_read_reg() and return error code
if the function fails.
Fixes: b0902bbeb768 ("regulator: max14577: Add regulator driver for Maxim 14577")
Cc: stable@vger.kernel.org # v3.14
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20250526025627.407-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions