commit | 7f1daec8e95d9c8cfc103ea81baf4e10ef88d640 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@linaro.org> | Wed Jan 31 10:09:15 2024 +0300 |
committer | Caleb Connolly <caleb.connolly@linaro.org> | Wed Feb 14 17:16:52 2024 +0000 |
tree | 46378f512b80a03d6c18c1c492161b8ae530f5d2 | |
parent | be55bf5e96c0e694df6dc6ffdf0016e149d441f5 [diff] |
button: qcom-pmic: fix some error checking The pmic_reg_read() function can return errors. Add a check for that. Fixes: 4e8aa0065d4b ("button: qcom-pmic: introduce Qualcomm PMIC button driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>