OSDN Git Service

usb: dwc3: debugfs: improve debugfs file creation
authorFelipe Balbi <balbi@ti.com>
Fri, 22 Feb 2013 14:24:49 +0000 (16:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:15 +0000 (11:17 +0200)
commitdbfff05d7c9b982e364c90a699961fb7000c6181
tree1b618e8f3ee757be6ed388613f9961144015310c
parent4ec0ddb1b4fe3f7d93fdc862d2a7338cd354fe94
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>
drivers/usb/dwc3/debugfs.c