board-config: fix typo from "unkown" to "unknown" 28/146428/1
authorkibak.yoon <kibak.yoon@samsung.com>
Mon, 28 Aug 2017 12:37:21 +0000 (21:37 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Mon, 28 Aug 2017 12:37:21 +0000 (21:37 +0900)
- 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 <kibak.yoon@samsung.com>
src/daemon/include/peripheral_bus_board.h
src/daemon/peripheral_bus_board.c

index fc517cd..22f8554 100644 (file)
@@ -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 {
index 291ac2e..4f13a82 100644 (file)
@@ -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;