usb: Runtime search the i2c path
The paths of sysfs nodes are different across kernel versions and i2c bus assignement. Runtime search the correct ones. Test: Manual test on device. Confirm that file reads related to file path error do not trigger error. Bug: 318820040 Change-Id: I1217fcea012865cebe12c935917f12903003fd5b (ported from commit 0b768c8fbe1e59a4b9efa7b5f7b6a017a81d46fb) Signed-off-by: RD Babiera <rdbabiera@google.com>
This commit is contained in:
parent
2877c355a4
commit
f1140a12b1
4 changed files with 105 additions and 84 deletions
|
@ -115,6 +115,8 @@ struct UsbGadget : public BnUsbGadget {
|
|||
|
||||
ScopedAStatus setVidPid(const char *vid,const char *pid);
|
||||
|
||||
std::string mI2cClientPath;
|
||||
|
||||
private:
|
||||
Status tearDownGadget();
|
||||
Status getUsbGadgetIrqPath();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue