aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/gadget/function/f_mass_storage.h
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2015-07-31 13:46:07 +0200
committerFelipe Balbi <balbi@ti.com>2015-07-31 09:01:19 -0500
commitdd02ea5a33059e4a753ae8bb877b698c54ee2907 (patch)
treeda31ce46795d007f422546cc930ffe5f4a136d23 /drivers/usb/gadget/function/f_mass_storage.h
parentusb: gadget: mass_storage: Fix freeing luns sysfs implementation (diff)
downloadwireguard-linux-dd02ea5a33059e4a753ae8bb877b698c54ee2907.tar.xz
wireguard-linux-dd02ea5a33059e4a753ae8bb877b698c54ee2907.zip
usb: gadget: mass_storage: Use static array for luns
This patch replace dynamicly allocated luns array with static one. This simplifies the code of mass storage function and modules. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Acked-by: Michal Nazarewicz <mina86@mina86.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_mass_storage.h')
-rw-r--r--drivers/usb/gadget/function/f_mass_storage.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/gadget/function/f_mass_storage.h b/drivers/usb/gadget/function/f_mass_storage.h
index 37bc94cbb7f3..445df6775609 100644
--- a/drivers/usb/gadget/function/f_mass_storage.h
+++ b/drivers/usb/gadget/function/f_mass_storage.h
@@ -141,10 +141,6 @@ void fsg_common_remove_lun(struct fsg_lun *lun);
void fsg_common_remove_luns(struct fsg_common *common);
-void fsg_common_free_luns(struct fsg_common *common);
-
-int fsg_common_set_nluns(struct fsg_common *common, int nluns);
-
void fsg_common_set_ops(struct fsg_common *common,
const struct fsg_operations *ops);