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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}