mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
denver: modify wl2864c driver
[detail] use gpiod to eanble gpio, fix build error in Android R. Change-Id: I6ebf639b2f90ab1c66d1d7b4e5d78d2c85a09d37 Signed-off-by: liuwang2 <liuwang2@lenovo.com> Reviewed-on: https://gerrit.mot.com/1763843 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dawei Wang <wangdw10@motorola.com> Reviewed-by: Zhenxin Xi <xizx@motorola.com> Reviewed-by: Long Cheng <chengl1@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
5fbaf3f0b4
commit
4e7f43b4e8
1 changed files with 2 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ static int wl2864c_of_parse_cb(struct device_node *np,
|
|||
int ena_gpio;
|
||||
|
||||
ena_gpio = of_get_named_gpio(np, "enable-gpios", 0);
|
||||
if (ena_gpio)
|
||||
config->ena_gpio = ena_gpio;
|
||||
if (gpio_is_valid(ena_gpio))
|
||||
config->ena_gpiod = gpio_to_desc(ena_gpio);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue