Commit 64c9cabc authored by Alexandre Bailon's avatar Alexandre Bailon Committed by Greg Kroah-Hartman

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: default avatarAlexandre Bailon <abailon@baylibre.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1ff3dc92
...@@ -143,7 +143,7 @@ static int ep_pair_in_use(struct es1_ap_dev *es1, int ep_pair) ...@@ -143,7 +143,7 @@ static int ep_pair_in_use(struct es1_ap_dev *es1, int ep_pair)
return 0; 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) u16 cport_id, int ep_pair)
{ {
int retval; int retval;
...@@ -180,7 +180,7 @@ int map_cport_to_ep(struct es1_ap_dev *es1, ...@@ -180,7 +180,7 @@ int map_cport_to_ep(struct es1_ap_dev *es1,
return retval; 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); return map_cport_to_ep(es1, cport_id, 0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment