use struct jtag_tap_event_action
Remove useless typedef and redundant suffix from jtag_tap_event_action.
This commit is contained in:
parent
363d72a484
commit
5874d5f2ea
|
@ -143,8 +143,6 @@ struct scan_field {
|
||||||
uint8_t intmp[4];
|
uint8_t intmp[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct jtag_tap_event_action_s jtag_tap_event_action_t;
|
|
||||||
|
|
||||||
struct jtag_tap {
|
struct jtag_tap {
|
||||||
const char* chip;
|
const char* chip;
|
||||||
const char* tapname;
|
const char* tapname;
|
||||||
|
@ -174,7 +172,7 @@ struct jtag_tap {
|
||||||
/// Bypass register selected
|
/// Bypass register selected
|
||||||
int bypass;
|
int bypass;
|
||||||
|
|
||||||
jtag_tap_event_action_t *event_action;
|
struct jtag_tap_event_action *event_action;
|
||||||
|
|
||||||
struct jtag_tap* next_tap;
|
struct jtag_tap* next_tap;
|
||||||
};
|
};
|
||||||
|
@ -220,11 +218,11 @@ enum jtag_event {
|
||||||
JTAG_TAP_EVENT_DISABLE,
|
JTAG_TAP_EVENT_DISABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct jtag_tap_event_action_s
|
struct jtag_tap_event_action
|
||||||
{
|
{
|
||||||
enum jtag_event event;
|
enum jtag_event event;
|
||||||
Jim_Obj* body;
|
Jim_Obj* body;
|
||||||
jtag_tap_event_action_t* next;
|
struct jtag_tap_event_action* next;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,7 +103,7 @@ static int jtag_tap_configure_cmd(Jim_GetOptInfo *goi, struct jtag_tap * tap)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
jtag_tap_event_action_t *jteap;
|
struct jtag_tap_event_action *jteap;
|
||||||
|
|
||||||
jteap = tap->event_action;
|
jteap = tap->event_action;
|
||||||
/* replace existing? */
|
/* replace existing? */
|
||||||
|
@ -337,7 +337,7 @@ static int jim_newtap_cmd(Jim_GetOptInfo *goi)
|
||||||
|
|
||||||
static void jtag_tap_handle_event(struct jtag_tap *tap, enum jtag_event e)
|
static void jtag_tap_handle_event(struct jtag_tap *tap, enum jtag_event e)
|
||||||
{
|
{
|
||||||
jtag_tap_event_action_t * jteap;
|
struct jtag_tap_event_action * jteap;
|
||||||
|
|
||||||
for (jteap = tap->event_action; jteap != NULL; jteap = jteap->next) {
|
for (jteap = tap->event_action; jteap != NULL; jteap = jteap->next) {
|
||||||
if (jteap->event == e) {
|
if (jteap->event == e) {
|
||||||
|
|
Loading…
Reference in New Issue