mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
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:
2
conmux.c
2
conmux.c
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user