staging: unisys: visorhba: simplify and enhance debugfs interface
authorTim Sell <Timothy.Sell@unisys.com>
Thu, 12 May 2016 13:14:43 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:55:19 +0000 (22:55 -0700)
commit5e1073d3f4017980f256b06725229014829b821d
tree30b322f7bf5dc1bdcfa71e7ce24ca19340f9ecbc
parentbf817f2f40d79dd0dfd7d800e174d8bac5257935
staging: unisys: visorhba: simplify and enhance debugfs interface

debugfs info for each visorhba device is now presented by a file named of
the following form within the debugfs tree:

    visorhba/vbus<x>:dev<y>/info

where <x> is the vbus number, and <y> is the relative device number.

Also, the debugfs presentation function was converted to use the seq_file
interface, so that it could access the device context without resorting to
a global array.  This also simplified the function.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorhba/visorhba_main.c