aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-18 22:04:30 +0200
committerlaforge <laforge@osmocom.org>2020-10-19 15:06:08 +0000
commit629824ac14e5ddf3f1374882e3529a2ce033e3e2 (patch)
tree7a90d4f078582cf84bc7c0f75503c711f0a0f876 /src/osmo-bts-octphy
parent1b5b62962431060559bb5c8516b5fb340c67875f (diff)
use osmo_fd_setup() everywhere
Diffstat (limited to 'src/osmo-bts-octphy')
-rw-r--r--src/osmo-bts-octphy/l1_if.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c
index c03b4112..f20f21a5 100644
--- a/src/osmo-bts-octphy/l1_if.c
+++ b/src/osmo-bts-octphy/l1_if.c
@@ -1826,10 +1826,7 @@ struct octphy_hdl *l1if_open(struct phy_link *plink)
osmo_wqueue_init(&fl1h->phy_wq, 10);
fl1h->phy_wq.write_cb = octphy_write_cb;
fl1h->phy_wq.read_cb = octphy_read_cb;
- fl1h->phy_wq.bfd.fd = sfd;
- fl1h->phy_wq.bfd.when = OSMO_FD_READ;
- fl1h->phy_wq.bfd.cb = osmo_wqueue_bfd_cb;
- fl1h->phy_wq.bfd.data = fl1h;
+ osmo_fd_setup(&fl1h->phy_wq.bfd, sfd, OSMO_FD_READ, osmo_wqueue_bfd_cb, fl1h, 0);
rc = osmo_fd_register(&fl1h->phy_wq.bfd);
if (rc < 0) {
close(sfd);