Commit e33617a4 authored by Patrick Mochel's avatar Patrick Mochel

[sysfs] Add attr_name() macro

- Returns the name of an embedded attribute in a higher-level 
  attribute.
parent a4e2bce3
...@@ -43,7 +43,7 @@ struct attribute_group { ...@@ -43,7 +43,7 @@ struct attribute_group {
#define __ATTR_NULL { .attr = { .name = NULL } } #define __ATTR_NULL { .attr = { .name = NULL } }
#define attr_name(_attr) (_attr).attr.name
struct bin_attribute { struct bin_attribute {
struct attribute attr; struct attribute attr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment