Skip to content

Commit

Permalink
usb: chipidea: convert debug entries in sysfs to debugfs
Browse files Browse the repository at this point in the history
Currently, we have a bunch of files in sysfs that display all sorts of
debugging information for the device controller, so they have to move to
debugfs where they belong. The "registers" interface have been removed,
since it doesn't fit into the current driver design as is and it's hardly
a good idea to touch the registers from userspace anyway.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexander Shishkin authored and Greg Kroah-Hartman committed Mar 30, 2013
1 parent 69b7e8d commit 2d65128
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 335 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/chipidea/ci.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ struct hw_bank {
* @vbus_active: is VBUS active
* @transceiver: pointer to USB PHY, if any
* @hcd: pointer to usb_hcd for ehci host driver
* @debugfs: root dentry for this controller in debugfs
*/
struct ci13xxx {
struct device *dev;
Expand Down Expand Up @@ -164,6 +165,7 @@ struct ci13xxx {
bool global_phy;
struct usb_phy *transceiver;
struct usb_hcd *hcd;
struct dentry *debugfs;
};

static inline struct ci_role_driver *ci_role(struct ci13xxx *ci)
Expand Down
Loading

0 comments on commit 2d65128

Please sign in to comment.