diff options
| author | Caleb Connolly <[email protected]> | 2023-12-05 13:46:46 +0000 |
|---|---|---|
| committer | Caleb Connolly <[email protected]> | 2024-01-16 12:26:53 +0000 |
| commit | 033f09b4b460a676b6ce869d2ade97a3098fd312 (patch) | |
| tree | 750f73e8f6adbef82b6940afc3ed22efb6e7d8f6 /drivers/button | |
| parent | a4ba2a66639ed5db672800a52e6d02b4e83573c2 (diff) | |
gpio: qcom_pmic: fix silent dev_read_addr downcast
priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64,
with the upper bits being used for error codes. Do error checking before
downcasting to u32 to prevent errors being silently ignored.
Reviewed-by: Sumit Garg <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Tested-by: Sumit Garg <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Caleb Connolly <[email protected]>
Diffstat (limited to 'drivers/button')
0 files changed, 0 insertions, 0 deletions
