Quick fix to hardcode device name only once

Linus clearly wanted to make SURE that we use /dev/ttyUSB0

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Dirk Hohndel 2011-09-14 11:25:15 -07:00 committed by Linus Torvalds
parent b4c84c1a2e
commit b35e1bad8e

View file

@ -434,12 +434,10 @@ cancel_cb(void *userdata)
static void do_import(device_data_t *data)
{
/* FIXME! Needs user input! */
const char *devname = "/dev/ttyUSB0";
device_t *device = NULL;
device_status_t rc;
rc = device_open(devname, data->type, &device);
rc = device_open(data->devname, data->type, &device);
if (rc != DEVICE_STATUS_SUCCESS) {
error("Unable to open %s (%s)", data->name, data->devname);
return;