]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: Add DEV_FLAGS_DM to stdio for USB keyboard
authorSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 22:26:19 +0000 (16:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Sep 2024 19:01:00 +0000 (13:01 -0600)
This device contains a pointer to struct udevice so set the flag
indicating that, just to be tidy.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb_kbd.c

index b834b2f703d63be0e094d5a111e096402f85ce8a..1d9845b01ede6814ec35f746e3c97f4cc2a83994 100644 (file)
@@ -612,7 +612,7 @@ static int probe_usb_keyboard(struct usb_device *dev)
        debug("USB KBD: register.\n");
        memset(&usb_kbd_dev, 0, sizeof(struct stdio_dev));
        strcpy(usb_kbd_dev.name, DEVNAME);
-       usb_kbd_dev.flags =  DEV_FLAGS_INPUT;
+       usb_kbd_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_DM;
        usb_kbd_dev.getc = usb_kbd_getc;
        usb_kbd_dev.tstc = usb_kbd_testc;
        usb_kbd_dev.priv = (void *)dev;