Skip to content

Commit

Permalink
staging: comedi: refactor sysfs files in comedi_fops.c
Browse files Browse the repository at this point in the history
Refactor the sysfs attributes and functions to remove
the need for the forward declarations and use the
DEVICE_ATTR macro to define them.

Instead of individually creating sysfs device attribute
files, wrap them in an attribute_group and use the
sysfs_create_group function to create them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed May 9, 2012
1 parent 54fe68a commit a5011a2
Showing 1 changed file with 639 additions and 710 deletions.
Loading

0 comments on commit a5011a2

Please sign in to comment.