File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ static void device_wakeup(struct wfx_dev *wdev)
21
21
22
22
if (!wdev -> pdata .gpio_wakeup )
23
23
return ;
24
- if (gpiod_get_value_cansleep (wdev -> pdata .gpio_wakeup ))
24
+ if (gpiod_get_value_cansleep (wdev -> pdata .gpio_wakeup ) >= 0 )
25
25
return ;
26
26
27
27
if (wfx_api_older_than (wdev , 1 , 4 )) {
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ static int hif_startup_indication(struct wfx_dev *wdev,
94
94
static int hif_wakeup_indication (struct wfx_dev * wdev ,
95
95
const struct hif_msg * hif , const void * buf )
96
96
{
97
- if (!wdev -> pdata .gpio_wakeup
98
- || ! gpiod_get_value (wdev -> pdata .gpio_wakeup )) {
97
+ if (!wdev -> pdata .gpio_wakeup ||
98
+ gpiod_get_value (wdev -> pdata .gpio_wakeup ) == 0 ) {
99
99
dev_warn (wdev -> dev , "unexpected wake-up indication\n" );
100
100
return - EIO ;
101
101
}
You can’t perform that action at this time.
0 commit comments