staging: emxx_udc: fix compile warnings: discarding const qualifier
authorVincenzo Scotti <vinc94@gmail.com>
Sat, 13 Sep 2014 11:39:20 +0000 (13:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:10:40 +0000 (16:10 -0700)
Signed-off-by: Vincenzo Scotti <vinc94@gmail.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c

index ca443b4ef706146ac9660776a3772151f3d028b6..5c2a19a1564e0ecdf95540148a5f43bbddb4ad13 100644 (file)
@@ -3235,7 +3235,7 @@ static const char g_epb_name[] = "epb-bulk";
 static const char g_epc_name[] = "epc-nulk";
 static const char g_epd_name[] = "epdin-int";
 
-static char *gp_ep_name[NUM_ENDPOINTS] = {
+static const char *gp_ep_name[NUM_ENDPOINTS] = {
        g_ep0_name,
        g_ep1_name,
        g_ep2_name,
@@ -3256,7 +3256,7 @@ static char *gp_ep_name[NUM_ENDPOINTS] = {
 static void __init nbu2ss_drv_set_ep_info(
        struct nbu2ss_udc       *udc,
        struct nbu2ss_ep        *ep,
-       u8 *name)
+       const char *name)
 {
        ep->udc = udc;
        ep->desc = NULL;