X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fstlink%2Fstlink_layout.c;h=cd0ba7f571960945d067e1b907c68364d60bf632;hp=4ef9b765f159054534cb6eca79e33497d6c24db2;hb=a047d87196e829b927b4dc5281981d011fb4c586;hpb=571db4379129c7f700c71220fa3df5f80e575c89 diff --git a/src/jtag/stlink/stlink_layout.c b/src/jtag/stlink/stlink_layout.c index 4ef9b765f1..cd0ba7f571 100644 --- a/src/jtag/stlink/stlink_layout.c +++ b/src/jtag/stlink/stlink_layout.c @@ -32,10 +32,6 @@ #include #include -#define STLINK_LAYOUT_UNKNOWN 0 -#define STLINK_LAYOUT_SG 1 -#define STLINK_LAYOUT_USB 2 - static int stlink_layout_open(struct stlink_interface_s *stlink_if) { int res; @@ -61,15 +57,7 @@ static int stlink_layout_close(struct stlink_interface_s *stlink_if) static const struct stlink_layout stlink_layouts[] = { { - .name = "usb", - .type = STLINK_LAYOUT_USB, - .open = stlink_layout_open, - .close = stlink_layout_close, - .api = &stlink_usb_layout_api, - }, - { - .name = "sg", - .type = STLINK_LAYOUT_SG, + .name = "stlink", .open = stlink_layout_open, .close = stlink_layout_close, .api = &stlink_usb_layout_api,