summaryrefslogtreecommitdiff
path: root/src/target/oocd_trace.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:35:48 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:13 -0800
commitd0c19e0a9d51211953a363026c662d290542fe85 (patch)
treec4b0f25cfcaf15185ebf96895d6ec9199f6047c7 /src/target/oocd_trace.c
parent6421c2075c733d18b7fc9daed847c135b98230b7 (diff)
downloadopenocd+libswd-d0c19e0a9d51211953a363026c662d290542fe85.tar.gz
openocd+libswd-d0c19e0a9d51211953a363026c662d290542fe85.tar.bz2
openocd+libswd-d0c19e0a9d51211953a363026c662d290542fe85.tar.xz
openocd+libswd-d0c19e0a9d51211953a363026c662d290542fe85.zip
etm_context_t -> struct etm_context
Remove misleading typedef and redundant suffix from struct etm_context.
Diffstat (limited to 'src/target/oocd_trace.c')
-rw-r--r--src/target/oocd_trace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c
index c5f8b808..6011b682 100644
--- a/src/target/oocd_trace.c
+++ b/src/target/oocd_trace.c
@@ -96,7 +96,7 @@ static int oocd_trace_read_memory(struct oocd_trace *oocd_trace, uint8_t *data,
return ERROR_OK;
}
-static int oocd_trace_init(etm_context_t *etm_ctx)
+static int oocd_trace_init(struct etm_context *etm_ctx)
{
uint8_t trash[256];
struct oocd_trace *oocd_trace = etm_ctx->capture_driver_priv;
@@ -143,7 +143,7 @@ static int oocd_trace_init(etm_context_t *etm_ctx)
return ERROR_OK;
}
-static trace_status_t oocd_trace_status(etm_context_t *etm_ctx)
+static trace_status_t oocd_trace_status(struct etm_context *etm_ctx)
{
struct oocd_trace *oocd_trace = etm_ctx->capture_driver_priv;
uint32_t status;
@@ -175,7 +175,7 @@ static trace_status_t oocd_trace_status(etm_context_t *etm_ctx)
return etm_ctx->capture_status;
}
-static int oocd_trace_read_trace(etm_context_t *etm_ctx)
+static int oocd_trace_read_trace(struct etm_context *etm_ctx)
{
struct oocd_trace *oocd_trace = etm_ctx->capture_driver_priv;
uint32_t status, address;
@@ -233,7 +233,7 @@ static int oocd_trace_read_trace(etm_context_t *etm_ctx)
return ERROR_OK;
}
-static int oocd_trace_start_capture(etm_context_t *etm_ctx)
+static int oocd_trace_start_capture(struct etm_context *etm_ctx)
{
struct oocd_trace *oocd_trace = etm_ctx->capture_driver_priv;
uint32_t control = 0x1; /* 0x1: enabled */
@@ -266,7 +266,7 @@ static int oocd_trace_start_capture(etm_context_t *etm_ctx)
return ERROR_OK;
}
-static int oocd_trace_stop_capture(etm_context_t *etm_ctx)
+static int oocd_trace_stop_capture(struct etm_context *etm_ctx)
{
struct oocd_trace *oocd_trace = etm_ctx->capture_driver_priv;