# HG changeset patch # User Florian Pose # Date 1255445576 -7200 # Node ID f16c834600d41264b76f3ccffdefbc1fa548abfc # Parent cf2fa3be6addcc01f84289b2607c45a6450a1dda Removed unused sysfs macros. diff -r cf2fa3be6add -r f16c834600d4 master/globals.h --- a/master/globals.h Tue Oct 06 13:50:30 2009 +0200 +++ b/master/globals.h Tue Oct 13 16:52:56 2009 +0200 @@ -248,30 +248,6 @@ #define EC_DBG(fmt, args...) \ printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) -/** Convenience macro for defining read-only SysFS attributes. - * - * This results in creating a static variable called attr_\a NAME. The SysFS - * file will be world-readable. - * - * \param NAME name of the attribute to create. - */ -#define EC_SYSFS_READ_ATTR(NAME) \ - static struct attribute attr_##NAME = { \ - .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO \ - } - -/** Convenience macro for defining read-write SysFS attributes. - * - * This results in creating a static variable called attr_\a NAME. The SysFS - * file will be word-readable plus owner-writable. - * - * \param NAME name of the attribute to create. - */ -#define EC_SYSFS_READ_WRITE_ATTR(NAME) \ - static struct attribute attr_##NAME = { \ - .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO | S_IWUSR \ - } - /*****************************************************************************/ extern char *ec_master_version_str;