Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 758b463d authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Felipe Balbi
Browse files

usb: gadget: f_mass_storage: fix default product name



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".

Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 594daba1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2747,8 +2747,8 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common,
		 "%-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);

	/*