[PATCH 7/7] sysfs: Remove transitional attribute group alias macros

David E. Box posted 7 patches 7 months, 3 weeks ago
[PATCH 7/7] sysfs: Remove transitional attribute group alias macros
Posted by David E. Box 7 months, 3 weeks ago
Remove transitional macros used to alias named and visible sysfs attribute
group definitions. These were temporarily introduced to ease migration but
are now redundant due to the adoption of the new encapsulated
NAMED_ATTRIBUTE_* macros across all relevant drivers.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
---
 include/linux/sysfs.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 0804bffd6013..877fd1976668 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -220,12 +220,6 @@ struct attribute_group {
 		return a->mode;                                             \
 	}
 
-/* Transitional aliases: so legacy code using old names continues to work */
-#define DEFINE_SYSFS_GROUP_VISIBLE(name) DEFINE_SYSFS_GROUP_COMBO_VISIBILITY(name)
-#define DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE(name) DEFINE_SYSFS_GROUP_VISIBILITY(name)
-#define DEFINE_SYSFS_BIN_GROUP_VISIBLE(name) DEFINE_SYSFS_BIN_GROUP_COMBO_VISIBILITY(name)
-#define DEFINE_SIMPLE_SYSFS_BIN_GROUP_VISIBLE(name) DEFINE_SYSFS_BIN_GROUP_VISIBILITY(name)
-
 #define SYSFS_GROUP_VISIBLE(fn) sysfs_group_visible_##fn
 
 /*
-- 
2.43.0
Re: [PATCH 7/7] sysfs: Remove transitional attribute group alias macros
Posted by Dan Williams 7 months, 3 weeks ago
David E. Box wrote:
> Remove transitional macros used to alias named and visible sysfs attribute
> group definitions. These were temporarily introduced to ease migration but
> are now redundant due to the adoption of the new encapsulated
> NAMED_ATTRIBUTE_* macros across all relevant drivers.
> 
> Signed-off-by: David E. Box <david.e.box@linux.intel.com>

Appreciate this split just in case there is some lag in the acceptance
of the individual conversion patches.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>