diff mbox series

[U-Boot,V2,2/3] test: dm: usb: use the real device name

Message ID 20190522072201.5130-2-peng.fan@nxp.com
State Accepted
Commit 819ac50d2a7a05eab65b45c1c18fefedbef51e67
Delegated to: Tom Rini
Headers show
Series [U-Boot,V2,1/3] test: dm: adc: use the real device name | expand

Commit Message

Peng Fan May 22, 2019, 7:08 a.m. UTC
"keyb" is not the real device name, "keyb@3" is.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---

V2:
 New

 test/dm/usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bin Meng May 22, 2019, 7:50 a.m. UTC | #1
On Wed, May 22, 2019 at 3:09 PM Peng Fan <peng.fan@nxp.com> wrote:
>
> "keyb" is not the real device name, "keyb@3" is.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>
> V2:
>  New
>
>  test/dm/usb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tom Rini July 14, 2019, 1:07 p.m. UTC | #2
On Wed, May 22, 2019 at 07:08:12AM +0000, Peng Fan wrote:

> "keyb" is not the real device name, "keyb@3" is.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/test/dm/usb.c b/test/dm/usb.c
index 3493617544..ef454b0ae5 100644
--- a/test/dm/usb.c
+++ b/test/dm/usb.c
@@ -125,7 +125,7 @@  static int dm_test_usb_keyb(struct unit_test_state *uts)
 	/* Initially there should be no characters */
 	ut_asserteq(0, tstc());
 
-	ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb",
+	ut_assertok(uclass_get_device_by_name(UCLASS_USB_EMUL, "keyb@3",
 					      &dev));
 
 	/*