mctp-demux-daemon.c (bc53d35a83b6720154b76b915ce63ac03f07b57d) | mctp-demux-daemon.c (3b36d17cf18bd9ad13f043256371222e2845e4d9) |
---|---|
1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 3#define _GNU_SOURCE 4 5#include <assert.h> 6#include <err.h> 7#include <getopt.h> 8#include <poll.h> --- 131 unchanged lines hidden (view full) --- 140 141 serial = mctp_serial_init(); 142 assert(serial); 143 144 rc = mctp_serial_open_path(serial, path); 145 if (rc) 146 return -1; 147 | 1/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 3#define _GNU_SOURCE 4 5#include <assert.h> 6#include <err.h> 7#include <getopt.h> 8#include <poll.h> --- 131 unchanged lines hidden (view full) --- 140 141 serial = mctp_serial_init(); 142 assert(serial); 143 144 rc = mctp_serial_open_path(serial, path); 145 if (rc) 146 return -1; 147 |
148 mctp_serial_register_bus(serial, mctp, eid); | 148 mctp_register_bus(mctp, mctp_binding_serial_core(serial), eid); |
149 150 binding->data = serial; 151 152 return 0; 153} 154 155static int binding_serial_get_fd(struct binding *binding) 156{ --- 17 unchanged lines hidden (view full) --- 174 } 175 176 astlpc = mctp_astlpc_init_fileio(); 177 if (!astlpc) { 178 warnx("could not initialise astlpc binding"); 179 return -1; 180 } 181 | 149 150 binding->data = serial; 151 152 return 0; 153} 154 155static int binding_serial_get_fd(struct binding *binding) 156{ --- 17 unchanged lines hidden (view full) --- 174 } 175 176 astlpc = mctp_astlpc_init_fileio(); 177 if (!astlpc) { 178 warnx("could not initialise astlpc binding"); 179 return -1; 180 } 181 |
182 mctp_astlpc_register_bus(astlpc, mctp, eid); | 182 mctp_register_bus(mctp, mctp_binding_astlpc_core(astlpc), eid); 183 |
183 binding->data = astlpc; 184 return 0; 185} 186 187static int binding_astlpc_get_fd(struct binding *binding) 188{ 189 return mctp_astlpc_get_fd(binding->data); 190} --- 333 unchanged lines hidden --- | 184 binding->data = astlpc; 185 return 0; 186} 187 188static int binding_astlpc_get_fd(struct binding *binding) 189{ 190 return mctp_astlpc_get_fd(binding->data); 191} --- 333 unchanged lines hidden --- |