From 4eb637e28597225754d36e8ef60dc93de23b789d Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Fri, 6 Dec 2013 09:28:43 +0000 Subject: [PATCH] struct initialization in old style --- src/hci_transport_h4_dma.c | 4 +++- src/hci_transport_h4_ehcill_dma.c | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/hci_transport_h4_dma.c b/src/hci_transport_h4_dma.c index 3c6798e02..3206b53b3 100644 --- a/src/hci_transport_h4_dma.c +++ b/src/hci_transport_h4_dma.c @@ -102,7 +102,9 @@ static uint16_t tx_len; static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler; static data_source_t hci_transport_h4_dma_ds = { - .process = h4_process + /* .item = */ NULL, + /* .fd = */ NULL, + /* .process = */ h4_process }; static hci_transport_h4_t hci_transport_h4_dma = { diff --git a/src/hci_transport_h4_ehcill_dma.c b/src/hci_transport_h4_ehcill_dma.c index 215669f00..5330ff47d 100644 --- a/src/hci_transport_h4_ehcill_dma.c +++ b/src/hci_transport_h4_ehcill_dma.c @@ -134,19 +134,21 @@ static uint8_t tx_packet_type; // data source used in run_loop static data_source_t hci_transport_h4_dma_ds = { - .process = h4_process + /* .item = */ NULL, + /* .fd = */ NULL, + /* .process = */ h4_process }; // hci_transport for use by hci static const hci_transport_h4_t hci_transport_h4_ehcill_dma = { - .transport.open = h4_open, - .transport.close = h4_close, - .transport.send_packet = ehcill_send_packet, - .transport.register_packet_handler = h4_register_packet_handler, - .transport.get_transport_name = h4_get_transport_name, - .transport.set_baudrate = h4_set_baudrate, - .transport.can_send_packet_now = h4_can_send_packet_now, - .ds = &hci_transport_h4_dma_ds + /* .transport.open = */ h4_open, + /* .transport.close = */ h4_close, + /* .transport.send_packet = */ ehcill_send_packet, + /* .transport.register_packet_handler = */ h4_register_packet_handler, + /* .transport.get_transport_name = */ h4_get_transport_name, + /* .transport.set_baudrate = */ h4_set_baudrate, + /* .transport.can_send_packet_now = */ h4_can_send_packet_now, + /* .ds = */ &hci_transport_h4_dma_ds };