greybus: es2: change (un)map methods to static
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 14 Sep 2015 16:20:43 +0000 (18:20 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 05:09:32 +0000 (22:09 -0700)
Endpoints pair will only be managed by es2 driver.
map_cport_to_ep() and unmap_cport() should be static.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c

index 2ac2c1b..ec06dc6 100644 (file)
@@ -143,7 +143,7 @@ static int ep_pair_in_use(struct es1_ap_dev *es1, int ep_pair)
        return 0;
 }
 
-int map_cport_to_ep(struct es1_ap_dev *es1,
+static int map_cport_to_ep(struct es1_ap_dev *es1,
                                u16 cport_id, int ep_pair)
 {
        int retval;
@@ -180,7 +180,7 @@ int map_cport_to_ep(struct es1_ap_dev *es1,
        return retval;
 }
 
-int unmap_cport(struct es1_ap_dev *es1, u16 cport_id)
+static int unmap_cport(struct es1_ap_dev *es1, u16 cport_id)
 {
        return map_cport_to_ep(es1, cport_id, 0);
 }