From: Thomas Weißschuh Date: Mon, 23 Feb 2026 21:16:34 +0000 (+0100) Subject: EDAC/mpc85xx: Constify device sysfs attributes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4782a916f0af8e1eccb58eceb0662587bd92cae9;p=thirdparty%2Flinux.git 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 Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260223-sysfs-const-edac-v1-7-3ff0b87249e7@weissschuh.net --- diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index a45dc6b35edef..277f1c6bd5222 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c @@ -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",