sercomm: remove unrequired helper functions

osmo_sercomm_{bind,get}_uart() are not really needed anymore, as
sercomm_inst is public and thus the user can access the uart_id member
directly.

Change-Id: I6d57709c3764036046202f16a26c9eb87426c8d1
This commit is contained in:
Harald Welte 2017-05-02 21:42:46 +02:00
parent 8a4eb837ab
commit 1d640889df
2 changed files with 0 additions and 15 deletions

View File

@ -61,8 +61,6 @@ struct osmo_sercomm_inst {
#ifndef HOST_BUILD
#include <uart.h>
/* helper functions for target */
void osmo_sercomm_bind_uart(struct osmo_sercomm_inst *sercomm, int uart);
int osmo_sercomm_get_uart(struct osmo_sercomm_inst *sercomm);
void osmo_sercomm_change_speed(struct osmo_sercomm_inst *sercomm, enum uart_baudrate bdrt);
#endif

View File

@ -73,19 +73,6 @@ enum rx_state {
RX_ST_ESCAPE,
};
#ifndef HOST_BUILD
void osmo_sercomm_bind_uart(struct osmo_sercomm_inst *sercomm, int uart)
{
sercomm->uart_id = uart;
}
int osmo_sercomm_get_uart(struct osmo_sercomm_inst *sercomm)
{
return sercomm->uart_id;
}
#endif
void osmo_sercomm_init(struct osmo_sercomm_inst *sercomm)
{
unsigned int i;