Private
Public Access
2
0

uart: add fd (file descriptor) to uart context

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Jon Trulson
2015-04-29 15:51:07 -06:00
committed by Thomas Ingleby
parent 38acfe6d30
commit bdadbb8b01
2 changed files with 2 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ mraa_uart_init(int index)
memset(dev, 0, sizeof(struct _uart));
dev->index = index;
dev->fd = -1;
dev->path = (char*) plat->uart_dev[index].device_path;
if (advance_func->uart_init_post != NULL) {
mraa_result_t ret = advance_func->uart_init_post(dev);