aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2010-06-16 06:07:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:36 -0400
commit1dc90985d1b29275607ddac59555199e7894f633 (patch)
treefdcc51074c894d7f8cfc37113c30e13fdd496e64
parent26eca10e6ef64e15f250523a1e7e94ad40ac2bf8 (diff)
USB: gadget: f_mass_storage: fsg_add() renamed to fsg_bind_config()
Mass Storage Function had a bit unique name for function used to add it to USB configuration. Renamed as to match naming convention of other functions. Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/gadget/f_mass_storage.c13
-rw-r--r--drivers/usb/gadget/mass_storage.c2
-rw-r--r--drivers/usb/gadget/multi.c4
3 files changed, 13 insertions, 6 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index 4ce899c9b165..8a95ebc7e3d3 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -2990,9 +2990,9 @@ static struct usb_gadget_strings *fsg_strings_array[] = {
2990 NULL, 2990 NULL,
2991}; 2991};
2992 2992
2993static int fsg_add(struct usb_composite_dev *cdev, 2993static int fsg_bind_config(struct usb_composite_dev *cdev,
2994 struct usb_configuration *c, 2994 struct usb_configuration *c,
2995 struct fsg_common *common) 2995 struct fsg_common *common)
2996{ 2996{
2997 struct fsg_dev *fsg; 2997 struct fsg_dev *fsg;
2998 int rc; 2998 int rc;
@@ -3024,6 +3024,13 @@ static int fsg_add(struct usb_composite_dev *cdev,
3024 return rc; 3024 return rc;
3025} 3025}
3026 3026
3027static inline int __deprecated __maybe_unused
3028fsg_add(struct usb_composite_dev *cdev,
3029 struct usb_configuration *c,
3030 struct fsg_common *common)
3031{
3032 return fsg_bind_config(cdev, c, common);
3033}
3027 3034
3028 3035
3029/************************* Module parameters *************************/ 3036/************************* Module parameters *************************/
diff --git a/drivers/usb/gadget/mass_storage.c b/drivers/usb/gadget/mass_storage.c
index e68c00e08765..2b11e2079823 100644
--- a/drivers/usb/gadget/mass_storage.c
+++ b/drivers/usb/gadget/mass_storage.c
@@ -161,7 +161,7 @@ static int __init msg_do_config(struct usb_configuration *c)
161 if (IS_ERR(retp)) 161 if (IS_ERR(retp))
162 return PTR_ERR(retp); 162 return PTR_ERR(retp);
163 163
164 ret = fsg_add(c->cdev, c, &common); 164 ret = fsg_bind_config(c->cdev, c, &common);
165 fsg_common_put(&common); 165 fsg_common_put(&common);
166 return ret; 166 return ret;
167} 167}
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c
index a930d7fd7e7a..d3d314033022 100644
--- a/drivers/usb/gadget/multi.c
+++ b/drivers/usb/gadget/multi.c
@@ -172,7 +172,7 @@ static int __init rndis_do_config(struct usb_configuration *c)
172 if (ret < 0) 172 if (ret < 0)
173 return ret; 173 return ret;
174 174
175 ret = fsg_add(c->cdev, c, fsg_common); 175 ret = fsg_bind_config(c->cdev, c, fsg_common);
176 if (ret < 0) 176 if (ret < 0)
177 return ret; 177 return ret;
178 178
@@ -208,7 +208,7 @@ static int __init cdc_do_config(struct usb_configuration *c)
208 if (ret < 0) 208 if (ret < 0)
209 return ret; 209 return ret;
210 210
211 ret = fsg_add(c->cdev, c, fsg_common); 211 ret = fsg_bind_config(c->cdev, c, fsg_common);
212 if (ret < 0) 212 if (ret < 0)
213 return ret; 213 return ret;
214 214