summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_mass_storage.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz2013-10-09 10:05:56 +0200
committerFelipe Balbi2013-10-10 17:21:49 +0200
commit70634170999a15e338b4091e06bd36ffdd283899 (patch)
treed44335f815c41a1e3f779544208bb9c5edf74bf4 /drivers/usb/gadget/f_mass_storage.h
parentusb: gadget: f_mass_storage: create fsg_common_set_num_buffers for use in fsg... (diff)
downloadkernel-qcow2-linux-70634170999a15e338b4091e06bd36ffdd283899.tar.gz
kernel-qcow2-linux-70634170999a15e338b4091e06bd36ffdd283899.tar.xz
kernel-qcow2-linux-70634170999a15e338b4091e06bd36ffdd283899.zip
usb: gadget: f_mass_storage: create lun handling helpers for use in fsg_common_init
fsg_common_init is a lengthy function. Factor portions of it out. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_mass_storage.h')
-rw-r--r--drivers/usb/gadget/f_mass_storage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.h b/drivers/usb/gadget/f_mass_storage.h
index a00f51a1d94b..f98c792f36b0 100644
--- a/drivers/usb/gadget/f_mass_storage.h
+++ b/drivers/usb/gadget/f_mass_storage.h
@@ -106,6 +106,14 @@ void fsg_common_set_sysfs(struct fsg_common *common, bool sysfs);
int fsg_common_set_num_buffers(struct fsg_common *common, unsigned int n);
+void fsg_common_remove_lun(struct fsg_lun *lun, bool sysfs);
+
+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_config_from_params(struct fsg_config *cfg,
const struct fsg_module_parameters *params,
unsigned int fsg_num_buffers);