aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-05 12:26:55 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-05 15:31:31 +0100
commit5455243306bdc57f39a38da4d2d191d7d549b67c (patch)
treeebfdf2d5e8f2ed72381ea39951c7cd3aa7c106f6 /openbsc/src/e1_input.c
parenta61c709ef0dbce982059b725eb4e613409dd22f7 (diff)
[input] make mi_e1_line_update() a driver specific callback
This helps us to further disentangle the misdn driver and e1_input in preparation of DAHDI support.
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r--openbsc/src/e1_input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index a17ae415d..45231c398 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -542,7 +542,10 @@ int e1inp_driver_register(struct e1inp_driver *drv)
int e1inp_line_update(struct e1inp_line *line)
{
- return mi_e1_line_update(line);
+ if (line->driver && line->driver->line_update)
+ return line->driver->line_update(line);
+ else
+ return 0;
}
static int e1i_sig_cb(unsigned int subsys, unsigned int signal,