Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e69c745 authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: phy: qusb: Fix invalid gpio being treated as valid



A gpio of value 0 is valid and currently in the case
of invalid gpio, the notifier_gpio is updated to 0.
This causes invalid calls of get gpio value on gpio 0.

Fix this by not setting the gpio value to 0, if a valid
gpio could not be fetched.

Change-Id: Idbf3a36df6dfb4eaca1fe53d59faccc4b064d461
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 39cb43ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment