From 64c9cabcac57904b8a6d6ae9e8a90c258762c86b Mon Sep 17 00:00:00 2001 From: Alexandre Bailon Date: Mon, 14 Sep 2015 18:20:43 +0200 Subject: [PATCH] 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 Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/es2.c | 4 ++-- 1 file 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); }