[PATCH v2 12/23] mfd: intel-m10-bmc-pmci: Use named initializers for dfl_device_id array

From: Uwe Kleine-König (The Capable Hub)

Date: Wed Jul 08 2026 - 07:25:14 EST


While being less compact, using named initializers allows to more easily
see which members of the structs are assigned which value without having
to lookup the declaration of the struct. And it's also more robust
against changes to the struct definition.

The mentioned robustness is relevant for a planned change to struct
dfl_device_id that replaces .driver_data by an anonymous union.

This patch doesn't modify the compiled array, only its representation
in source form benefits.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/mfd/intel-m10-bmc-pmci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/intel-m10-bmc-pmci.c b/drivers/mfd/intel-m10-bmc-pmci.c
index d213c6ec04ba..f78309bbabfd 100644
--- a/drivers/mfd/intel-m10-bmc-pmci.c
+++ b/drivers/mfd/intel-m10-bmc-pmci.c
@@ -434,7 +434,7 @@ static void m10bmc_pmci_remove(struct dfl_device *ddev)
#define FME_FEATURE_ID_M10BMC_PMCI 0x12

static const struct dfl_device_id m10bmc_pmci_ids[] = {
- { FME_ID, FME_FEATURE_ID_M10BMC_PMCI },
+ { .type = FME_ID, .feature_id = FME_FEATURE_ID_M10BMC_PMCI },
{ }
};
MODULE_DEVICE_TABLE(dfl, m10bmc_pmci_ids);
--
2.55.0.11.g153666a7d9bb