conmux: Use "control_dev" instead of "cdb_serial"

It seems more suitable to use the "control_dev" to denote the target
conmux than "cdb_serial". Further more this makes it possible drop the
"cdb_serial" member in an upcoming commit.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2021-01-22 18:07:26 -06:00
parent 87ad99ecf2
commit 032a43b7ee
2 changed files with 2 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ void *conmux_open(struct device *dev)
struct sockaddr_in saddr;
struct conmux *conmux;
struct hostent *hent;
const char *service = dev->cdb_serial;
const char *service = dev->control_dev;
const char *user;
ssize_t n;
char req[256];

View File

@@ -106,7 +106,7 @@ static void parse_board(struct device_parser *dp)
dev->fastboot_key = cdb_fastboot_key;
dev->send_break = cdb_send_break;
} else if (!strcmp(key, "conmux")) {
dev->cdb_serial = strdup(value);
dev->control_dev = strdup(value);
dev->open = conmux_open;
dev->power_on = conmux_power_on;