usb: Add DEV_FLAGS_DM to stdio for USB keyboard

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>
This commit is contained in:
Simon Glass
2024-09-01 16:26:19 -06:00
committed by Tom Rini
parent 90afded462
commit 010c449263

View File

@@ -612,7 +612,7 @@ static int probe_usb_keyboard(struct usb_device *dev)
debug("USB KBD: register.\n"); debug("USB KBD: register.\n");
memset(&usb_kbd_dev, 0, sizeof(struct stdio_dev)); memset(&usb_kbd_dev, 0, sizeof(struct stdio_dev));
strcpy(usb_kbd_dev.name, DEVNAME); 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.getc = usb_kbd_getc;
usb_kbd_dev.tstc = usb_kbd_testc; usb_kbd_dev.tstc = usb_kbd_testc;
usb_kbd_dev.priv = (void *)dev; usb_kbd_dev.priv = (void *)dev;