]> git.baikalelectronics.ru Git - uboot.git/commitdiff
sandbox: i2c: Rename driver names to work with of-platdata
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:01:17 +0000 (06:01 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
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>
arch/sandbox/dts/test.dts
drivers/i2c/i2c-emul-uclass.c
drivers/rtc/i2c_rtc_emul.c

index f15d1ebabcf4888055bab53dd4e6d773c86ef8d7..899e75f260c1647a0ae1a6fd0f877201908fed65 100644 (file)
                                sandbox,size = <256>;
                        };
                        emul0: emul0 {
-                               compatible = "sandbox,i2c-rtc";
+                               compatible = "sandbox,i2c-rtc-emul";
                        };
                        emul1: emull {
-                               compatible = "sandbox,i2c-rtc";
+                               compatible = "sandbox,i2c-rtc-emul";
                        };
                };
 
index 085b824e895f8e4be5986d536e5dc50b85914f90..75d79883380f75929790bc3022cd620ee99f490b 100644 (file)
@@ -85,8 +85,8 @@ static const struct udevice_id i2c_emul_parent_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(i2c_emul_parent_drv) = {
-       .name           = "i2c_emul_parent_drv",
+U_BOOT_DRIVER(sandbox_i2c_emul_parent) = {
+       .name           = "sandbox_i2c_emul_parent",
        .id             = UCLASS_I2C_EMUL_PARENT,
        .of_match       = i2c_emul_parent_ids,
 };
index f25b976e54d993b077c527ee3b617958b5c3a5d4..fdc885c518b02c6413541a9330a79cdcb15f5c55 100644 (file)
@@ -223,7 +223,7 @@ static int sandbox_i2c_rtc_bind(struct udevice *dev)
 }
 
 static const struct udevice_id sandbox_i2c_rtc_ids[] = {
-       { .compatible = "sandbox,i2c-rtc" },
+       { .compatible = "sandbox,i2c-rtc-emul" },
        { }
 };