From: kibak.yoon Date: Mon, 28 Aug 2017 12:37:21 +0000 (+0900) Subject: board-config: fix typo from "unkown" to "unknown" X-Git-Tag: submit/tizen/20170830.124248~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F146428%2F1;p=platform%2Fcore%2Fsystem%2Fperipheral-bus.git board-config: fix typo from "unkown" to "unknown" - the config file name is not matched because there is a typo("unkown"). so it is failing to load the config file on the unknown device(e.g., artik520). - Even if this patch is merged, the peripheral bus daemon will not boot properly. This is because there is no peripheral-io item in the config file... Change-Id: I7e96467304ef8742c30205d51447ff76b35b1713 Signed-off-by: kibak.yoon --- diff --git a/src/daemon/include/peripheral_bus_board.h b/src/daemon/include/peripheral_bus_board.h index fc517cd..22f8554 100644 --- a/src/daemon/include/peripheral_bus_board.h +++ b/src/daemon/include/peripheral_bus_board.h @@ -25,7 +25,7 @@ typedef enum { PB_BOARD_ARTIK710 = 0, PB_BOARD_ARTIK530, PB_BOARD_RP3_B, - PB_BOARD_UNKOWN, + PB_BOARD_UNKNOWN, } pb_board_type_e; typedef enum { diff --git a/src/daemon/peripheral_bus_board.c b/src/daemon/peripheral_bus_board.c index 291ac2e..4f13a82 100644 --- a/src/daemon/peripheral_bus_board.c +++ b/src/daemon/peripheral_bus_board.c @@ -36,7 +36,7 @@ static const pb_board_type_s pb_board_type[] = { {PB_BOARD_ARTIK710, "artik710 raptor", BOARD_INI_ARTIK710_PATH}, {PB_BOARD_ARTIK530, "artik530 raptor", BOARD_INI_ARTIK710_PATH}, {PB_BOARD_RP3_B, "Raspberry Pi 3 Model B", BOARD_INI_RP3_B_PATH}, - {PB_BOARD_UNKOWN, "unkown board", BOARD_INI_UNKNOWN_PATH}, + {PB_BOARD_UNKNOWN, "unknown board", BOARD_INI_UNKNOWN_PATH}, }; static int peripheral_bus_board_get_device_type(char *string) @@ -122,7 +122,7 @@ static int peripheral_bus_board_get_type(void) { int fd, i; char str_buf[STR_BUF_MAX] = {0}; - int type = PB_BOARD_UNKOWN; + int type = PB_BOARD_UNKNOWN; fd = open(BOARD_DEVICE_TREE, O_RDONLY); if (fd < 0) { @@ -137,7 +137,7 @@ static int peripheral_bus_board_get_type(void) return -EIO; } - for (i = 0; i < PB_BOARD_UNKOWN; i++) { + for (i = 0; i < PB_BOARD_UNKNOWN; i++) { if (strstr(str_buf, pb_board_type[i].name)) { type = pb_board_type[i].type; break;