Re: [PATCH] usb/gadget: f_mass_storage: fix default product name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 04 2013, Andrzej Pietrasiewicz wrote:
> If cfg->product name is not set, a default name is chosen depending
> on the common->luns->cdrom flag. If the flag is set the name should
> be "File-CD Gadget", and if the flag is not set the name should be
> "File-Stor Gadget".
>
> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>

Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx>

> ---
>  drivers/usb/gadget/f_mass_storage.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
> index 97666e8..017898f 100644
> --- a/drivers/usb/gadget/f_mass_storage.c
> +++ b/drivers/usb/gadget/f_mass_storage.c
> @@ -2745,8 +2745,8 @@ buffhds_first_it:
>  		 "%-8s%-16s%04x", cfg->vendor_name ?: "Linux",
>  		 /* Assume product name dependent on the first LUN */
>  		 cfg->product_name ?: (common->luns->cdrom
> -				     ? "File-Stor Gadget"
> -				     : "File-CD Gadget"),
> +				     ? "File-CD Gadget"
> +				     : "File-Stor Gadget"),
>  		 i);
>  
>  	/*
> -- 
> 1.7.0.4
>

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--

Attachment: pgp6ZkZAn8Aep.pgp
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux