mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04: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
@@ -2124,7 +2124,7 @@ static int amdgpu_ras_fs_init(struct amdgpu_device *adev)
|
||||
con->badpages_attr = bin_attr_gpu_vram_bad_pages;
|
||||
sysfs_bin_attr_init(&con->badpages_attr);
|
||||
bin_attrs[0] = &con->badpages_attr;
|
||||
group.bin_attrs_new = bin_attrs;
|
||||
group.bin_attrs = bin_attrs;
|
||||
}
|
||||
|
||||
r = sysfs_create_group(&adev->dev->kobj, &group);
|
||||
|
||||
Reference in New Issue
Block a user