]> git.ipfire.org Git - thirdparty/u-boot.git/commit
button: qcom-pmic: fix some error checking
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 31 Jan 2024 07:09:15 +0000 (10:09 +0300)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 14 Feb 2024 17:16:52 +0000 (17:16 +0000)
commit6b929e9f3c16bbddeffb85351e93db13eaa9b57d
tree46378f512b80a03d6c18c1c492161b8ae530f5d2
parent37345abb97ef0dd9c50a03b2a72617612dcae585
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>
drivers/button/button-qcom-pmic.c