aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-wcd934x.c
AgeCommit message (Collapse)AuthorFilesLines
2020-02-10gpio: wcd934x: Fix logic of wcd_gpio_getAxel Lin1-2/+2
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]>
2020-02-10gpio: wcd934x: Don't change gpio direction in wcd_gpio_setAxel Lin1-1/+4
The .set callback should just set output value. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
2020-01-15gpio: wcd934x: Add support to wcd934x gpio controllerSrinivas Kandagatla1-0/+121
This patch adds support to wcd934x gpio block found in WCD9340/WC9341 Audio codecs. Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>