diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2025-10-29 09:12:16 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-26 15:16:35 +0100 |
| commit | 71464949b1f5f8b8599d057fea525a2a520f84d8 (patch) | |
| tree | 8c5137f97f58741f878e52d4e130180c8aceec38 /rust/helpers/clk.c | |
| parent | 2d76fdc1c91a95c23cd3e47a4fd4315f1633019b (diff) | |
sysfs: simplify attribute definition macros
Define the macros in terms of each other.
This makes them easier to understand and also will make it easier to
implement the transition machinery for 'const struct attribute'.
__ATTR_RO_MODE() can't be implemented in terms of __ATTR() as not all
attributes have a .store callback. The same issue theoretically exists
for __ATTR_WO(), but practically that does not occur today.
Reorder __ATTR_RO() below __ATTR_RO_MODE() to keep the order of the
macro definition consistent with respect to each other.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251029-sysfs-const-attr-prep-v5-7-ea7d745acff4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/clk.c')
0 files changed, 0 insertions, 0 deletions
