commit | dbfff05d7c9b982e364c90a699961fb7000c6181 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Fri Feb 22 16:24:49 2013 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Mon Mar 18 11:17:15 2013 +0200 |
tree | 1b618e8f3ee757be6ed388613f9961144015310c | |
parent | 4ec0ddb1b4fe3f7d93fdc862d2a7338cd354fe94 [diff] |
usb: dwc3: debugfs: improve debugfs file creation when commit 388e5c5 (usb: dwc3: remove dwc3 dependency on host AND gadget.) changed the way debugfs files are created, it failed to note that 'mode' is necessary in Dual Role mode only while 'testmode' and 'link_state' are valid in Dual Role and Peripheral-only builds. Fix this while also converting pre- processor conditional to C conditionals. Signed-off-by: Felipe Balbi <balbi@ti.com>