summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/es2.c
diff options
context:
space:
mode:
authorAlexandre Bailon <abailon@baylibre.com>2015-09-14 18:20:43 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-14 22:09:32 -0700
commit64c9cabcac57904b8a6d6ae9e8a90c258762c86b (patch)
treec8d952fd709dc7d631107e727349b02e88542860 /drivers/staging/greybus/es2.c
parent1ff3dc920500c2f1cdfaa08c6812f19e05a36da1 (diff)
greybus: es2: change (un)map methods to static
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>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r--drivers/staging/greybus/es2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c
index 2ac2c1b433a5..ec06dc65f98d 100644
--- a/drivers/staging/greybus/es2.c
+++ b/drivers/staging/greybus/es2.c
@@ -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);
}