staging: comedi: refactor sysfs files in comedi_fops.c
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 9 May 2012 16:20:08 +0000 (09:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 20:39:33 +0000 (13:39 -0700)
commita5011a261574239403468368605f5e0625dcfb56
tree3fd217f79befd2dcd9a5e4a8915f118376ce29ff
parent54fe68a8d7e6f3f3f24150ef555b05dcc2fa0461
staging: comedi: refactor sysfs files in comedi_fops.c

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>
drivers/staging/comedi/comedi_fops.c