mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
sandbox: i2c: Rename driver names to work with of-platdata
Some of these do not follow the rules. Make sure the driver name matches the compatible string in all cases. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
23f40a3abf
commit
c4085d733b
3 changed files with 5 additions and 5 deletions
|
@ -604,10 +604,10 @@
|
||||||
sandbox,size = <256>;
|
sandbox,size = <256>;
|
||||||
};
|
};
|
||||||
emul0: emul0 {
|
emul0: emul0 {
|
||||||
compatible = "sandbox,i2c-rtc";
|
compatible = "sandbox,i2c-rtc-emul";
|
||||||
};
|
};
|
||||||
emul1: emull {
|
emul1: emull {
|
||||||
compatible = "sandbox,i2c-rtc";
|
compatible = "sandbox,i2c-rtc-emul";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -85,8 +85,8 @@ static const struct udevice_id i2c_emul_parent_ids[] = {
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
U_BOOT_DRIVER(i2c_emul_parent_drv) = {
|
U_BOOT_DRIVER(sandbox_i2c_emul_parent) = {
|
||||||
.name = "i2c_emul_parent_drv",
|
.name = "sandbox_i2c_emul_parent",
|
||||||
.id = UCLASS_I2C_EMUL_PARENT,
|
.id = UCLASS_I2C_EMUL_PARENT,
|
||||||
.of_match = i2c_emul_parent_ids,
|
.of_match = i2c_emul_parent_ids,
|
||||||
};
|
};
|
||||||
|
|
|
@ -223,7 +223,7 @@ static int sandbox_i2c_rtc_bind(struct udevice *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct udevice_id sandbox_i2c_rtc_ids[] = {
|
static const struct udevice_id sandbox_i2c_rtc_ids[] = {
|
||||||
{ .compatible = "sandbox,i2c-rtc" },
|
{ .compatible = "sandbox,i2c-rtc-emul" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue