diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2010-12-09 10:26:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-10 00:34:31 (GMT) |
commit | 9119dee1ce32453dfe24656091d69f8d57397fe0 (patch) | |
tree | 62ba9580073d9f6f736c0f97c23f6afb698e2853 /drivers/staging/ft1000/ft1000-usb/ft1000_usb.h | |
parent | 372058f1b4b3603a7e0c26f38d6eb20a3dd8c453 (diff) | |
download | linux-fsl-qoriq-9119dee1ce32453dfe24656091d69f8d57397fe0.tar.xz |
staging: ft1000: Convert char device to debugfs.
Character device was used only for debugging purposes.
Convert it to debugfs functionality. For every plugged device
create new directory with one file.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ft1000/ft1000-usb/ft1000_usb.h')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_usb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h index a07db26..5bead63 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h @@ -473,6 +473,13 @@ struct ft1000_device // struct net_device_stats stats; //mbelian } __attribute__ ((packed)); +struct ft1000_debug_dirs { + struct list_head list; + struct dentry *dent; + struct dentry *file; + int int_number; +}; + struct ft1000_info { struct ft1000_device *pFt1000Dev; struct net_device_stats stats; @@ -508,6 +515,7 @@ struct ft1000_info { u8 CardNumber; u8 DeviceName[15]; int DeviceMajor; + struct ft1000_debug_dirs nodes; int registered; int mediastate; int dhcpflg; |