diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:02:25 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 08:04:28 +0100 |
commit | 2a2b2a5f6dfcfbc41e4e1ab24b7d5bd5901b4d02 (patch) | |
tree | 8ba7177363a784c57b36c7844d7b8c2ac715aa99 /src/links.c | |
parent | 3c0d6b3f6253d57a5e3a7045b0ac6d49fbe3f9e9 (diff) |
link_sets: Remove direct function calls for data/up/down from MTP3
We want to support different link_sets types. To do this we will
need to reduce the coupling of mtp_link_set with the application.
This is the first step to remove the notifications. This comes with
a performance cost but it has not been measured.
In the long run the conditions for if (set->on_bla) should be
removed as this indicates a wrong configuration of the linkset.
Diffstat (limited to 'src/links.c')
-rw-r--r-- | src/links.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/links.c b/src/links.c index 59b45c8..3a3fd3f 100644 --- a/src/links.c +++ b/src/links.c @@ -51,7 +51,7 @@ void mtp_link_down(struct mtp_link *link) /* our linkset is now unsuable */ if (was_up && !one_up) - mtp_linkset_down(link->set); + link_set_down(link->set); link->clear_queue(link); mtp_link_stop_link_test(link); mtp_link_set_init_slc(link->set); @@ -74,7 +74,7 @@ void mtp_link_up(struct mtp_link *link) mtp_link_set_init_slc(link->set); if (!one_up) - mtp_linkset_up(link->set); + link_set_up(link->set); else mtp_link_start_link_test(link); } |