summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/f_mass_storage.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-10-09 10:06:02 +0200
committerFelipe Balbi <balbi@ti.com>2013-10-10 10:24:10 -0500
commit2412fbf1ffac21da14308924ccb17fe1a5506b1a (patch)
treeb648dec9fb2b34452ad058c70bc4c955f191ee4b /drivers/usb/gadget/f_mass_storage.h
parente5eaa0dc4866181aff655ef3f94cd990172b751f (diff)
usb: gadget: mass_storage: convert to new interface of f_mass_storage
Convert old mass_storage gadget to use the new interface of f_mass_storage so that later the compatibility layer in f_mass_storage can be removed. struct fsg_common is not known to mass_storage.c, so a setter method is added to f_mass_storage. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.h b/drivers/usb/gadget/f_mass_storage.h
index 42f7db408478..b53cf8c9189e 100644
--- a/drivers/usb/gadget/f_mass_storage.h
+++ b/drivers/usb/gadget/f_mass_storage.h
@@ -132,6 +132,9 @@ 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);
+
int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg,
unsigned int id, const char *name,
const char **name_pfx);