Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpio: wcd934x: Fix logic of wcd_gpio_get
The check with register value and mask should be & rather than &&. While at it, also use "unsigned int" for value variable because regmap_read() takes unsigned int *val argument. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
- Loading branch information