From: H Hartley Sweeten Date: Wed, 9 May 2012 16:20:08 +0000 (-0700) Subject: staging: comedi: refactor sysfs files in comedi_fops.c X-Git-Tag: v3.5-rc1~145^2~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5011a261574239403468368605f5e0625dcfb56;p=pandora-kernel.git 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 Cc: Ian Abbott Cc: Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed