[PATCH 2/5] nvmem: core: mark bin_attr_nvmem_eeprom_compat as const

From: Thomas Weißschuh
Date: Thu Jun 20 2024 - 12:01:14 EST


The attribute is only a template from which copies are created.
It should not be changed, so mark it const.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
drivers/nvmem/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 1285300ed239..d74297d10631 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -372,7 +372,7 @@ static const struct attribute_group *nvmem_cells_groups[] = {
NULL,
};

-static struct bin_attribute bin_attr_nvmem_eeprom_compat = {
+static const struct bin_attribute bin_attr_nvmem_eeprom_compat = {
.attr = {
.name = "eeprom",
},

--
2.45.2