mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 02:01:18 -04:00
EDAC/mpc85xx: Constify device sysfs attributes
Now that the EDAC core allows the registration of read-only attributes, make use of that in the mpc85xx driver. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260223-sysfs-const-edac-v1-7-3ff0b87249e7@weissschuh.net
This commit is contained in:
committed by
Borislav Petkov (AMD)
parent
2f1260c893
commit
4782a916f0
@@ -399,7 +399,7 @@ static ssize_t mpc85xx_l2_inject_ctrl_store(struct edac_device_ctl_info
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct edac_dev_sysfs_attribute mpc85xx_l2_sysfs_attributes[] = {
|
||||
static const struct edac_dev_sysfs_attribute mpc85xx_l2_sysfs_attributes[] = {
|
||||
{
|
||||
.attr = {
|
||||
.name = "inject_data_hi",
|
||||
|
||||
Reference in New Issue
Block a user