Skip to contentSkip to conversation

bootcount: Give i2c-eeprom a unique identifier

PATCH In review Tom Rini 2 participants 3 messages Mar 20 – Apr 3

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 bootcount: Give i2c-eeprom a unique identifier

Every U_BOOT_DRIVER entry must be unique and this driver was re-using the name of the bootcount_spi_flash driver. Change to bootcount_i2c_eeprom.

---
 drivers/bootcount/i2c-eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bootcount/i2c-eeprom.c +1 -1
index 12c430465c98..f54515f451ec 100644
@@ -85,7 +85,7 @@ static const struct udevice_id bootcount_i2c_eeprom_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(bootcount_spi_flash) = {
+U_BOOT_DRIVER(bootcount_i2c_eeprom) = {
 	.name	= "bootcount-i2c-eeprom",
 	.id	= UCLASS_BOOTCOUNT,
 	.priv_auto	= sizeof(struct bootcount_i2c_eeprom_priv),
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

Hi

Quoted 24 lines · Tom Rini

Every U_BOOT_DRIVER entry must be unique and this driver was re-using the name of the bootcount_spi_flash driver. Change to bootcount_i2c_eeprom.

---
 drivers/bootcount/i2c-eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bootcount/i2c-eeprom.c +1 -2
index 12c430465c98..f54515f451ec 100644
@@ -85,7 +85,7 @@ static const struct udevice_id bootcount_i2c_eeprom_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(bootcount_spi_flash) = {
+U_BOOT_DRIVER(bootcount_i2c_eeprom) = {
        .name   = "bootcount-i2c-eeprom",
        .id     = UCLASS_BOOTCOUNT,
        .priv_auto      = sizeof(struct bootcount_i2c_eeprom_priv),
--
Quoted 2 lines

2.43.0

author
#2 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

Every U_BOOT_DRIVER entry must be unique and this driver was re-using the name of the bootcount_spi_flash driver. Change to bootcount_i2c_eeprom.

Applied to u-boot/next, thanks!

[1/1] bootcount: Give i2c-eeprom a unique identifier

      commit: e5e268091e5ead232e2938a152ae0662fefc2ae4
Signature · 1 line
Tom