/* @dev: the keyboard emulation device @scancode: scancode buffer with USB_KBD_BOOT_REPORT_SIZE bytes  */
int sandbox_usb_keyb_add_string(struct udevice *dev, const char scancode[USB_KBD_BOOT_REPORT_SIZE])
/* @dev: the keyboard emulation device @scancode: scancode buffer with USB_KBD_BOOT_REPORT_SIZE bytes  */
int sandbox_usb_keyb_add_string(struct udevice *dev, const char scancode[USB_KBD_BOOT_REPORT_SIZE])
{
	struct sandbox_keyb_priv *priv = dev_get_priv(dev);
	int ret;
	ret = membuff_put(&priv->in, scancode, USB_KBD_BOOT_REPORT_SIZE);
	if (ret != USB_KBD_BOOT_REPORT_SIZE)
		return -ENOSPC;
	return 0;
}