mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
sysfs: treewide: switch back to attribute_group::bin_attrs
The normal bin_attrs field can now handle const pointers. This makes the _new variant unnecessary. Switch all users back. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-4-724bfcf05b99@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2fbe82037a
commit
fb506e31b3
@@ -386,7 +386,7 @@ static const struct bin_attribute *const nvmem_bin_attributes[] = {
|
||||
};
|
||||
|
||||
static const struct attribute_group nvmem_bin_group = {
|
||||
.bin_attrs_new = nvmem_bin_attributes,
|
||||
.bin_attrs = nvmem_bin_attributes,
|
||||
.attrs = nvmem_attrs,
|
||||
.is_bin_visible = nvmem_bin_attr_is_visible,
|
||||
.bin_size = nvmem_bin_attr_size,
|
||||
@@ -503,7 +503,7 @@ static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem)
|
||||
i++;
|
||||
}
|
||||
|
||||
group.bin_attrs_new = pattrs;
|
||||
group.bin_attrs = pattrs;
|
||||
|
||||
ret = device_add_group(&nvmem->dev, &group);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user