[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] usb: Set category and description of the MTP
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-trivial] [PATCH] usb: Set category and description of the MTP device |
Date: |
Fri, 20 Jan 2017 15:14:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
Le 20/01/2017 à 14:11, Thomas Huth a écrit :
> It's a storage device, so let's classify it accordingly. And
> while we're at it, also add a short description for people who
> do not know what MTP means.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> hw/usb/dev-mtp.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c
> index 9cb0f50..bb73809 100644
> --- a/hw/usb/dev-mtp.c
> +++ b/hw/usb/dev-mtp.c
> @@ -1580,6 +1580,8 @@ static void usb_mtp_class_initfn(ObjectClass *klass,
> void *data)
> uc->handle_reset = usb_mtp_handle_reset;
> uc->handle_control = usb_mtp_handle_control;
> uc->handle_data = usb_mtp_handle_data;
> + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
> + dc->desc = "USB Media Transfer Protocol device";
> dc->fw_name = "mtp";
> dc->vmsd = &vmstate_usb_mtp;
> dc->props = mtp_properties;
>
Reviewed-by: Laurent Vivier <address@hidden>