Skip to contentSkip to conversation

mcb: mcb updates for v6.9

PATCH New Johannes Thumshirn 1 participant 2 messages Feb 27, 2024 Men chameleon bus (mcb)

lore
Share & tools
lore
#0 lore raw

cover mcb: mcb updates for v6.9

Hi Greg,

Here's the one patch I've colleceted for mcb this cycle.

As you've already provided your Reviewed-by I suppose your OK with it.

Byte,
Johannes

Ricardo B. Marliere (1):
mcb: make mcb_bus_type const

 drivers/mcb/mcb-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.35.3
#1 lore raw

PATCH 1/1 mcb: make mcb_bus_type const

From: "Ricardo B. Marliere" <[email protected]>

Now that the driver core can properly handle constant struct bus_type, move the mcb_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime.

---
 drivers/mcb/mcb-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mcb/mcb-core.c +1 -1
index 61994da7bad0..0c939f867f0d 100644
@@ -156,7 +156,7 @@ static const struct attribute_group *mcb_carrier_groups[] = {
 };
 
 
-static struct bus_type mcb_bus_type = {
+static const struct bus_type mcb_bus_type = {
 	.name = "mcb",
 	.match = mcb_match,
 	.uevent = mcb_uevent,
Signature · 1 line
2.35.3