aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:14:57 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:08 -0800
commitdb08ab8a792a09399d2ffe362f580683ff102707 (patch)
tree7e98fa8b4b468047a949272d3a8938fb959cc72c /src
parentcd4c0598060dc6539604c9cad8cb645aa14b4ab1 (diff)
downloadriscv-openocd-db08ab8a792a09399d2ffe362f580683ff102707.zip
riscv-openocd-db08ab8a792a09399d2ffe362f580683ff102707.tar.gz
riscv-openocd-db08ab8a792a09399d2ffe362f580683ff102707.tar.bz2
virtex2_pld_device_t -> struct virtex2_pld_device
Remove misleading typedef and redundant suffix from struct virtex2_pld_device.
Diffstat (limited to 'src')
-rw-r--r--src/pld/virtex2.c12
-rw-r--r--src/pld/virtex2.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c
index 7a44065..2e5a841 100644
--- a/src/pld/virtex2.c
+++ b/src/pld/virtex2.c
@@ -52,7 +52,7 @@ static int virtex2_set_instr(struct jtag_tap *tap, uint32_t new_instr)
static int virtex2_send_32(struct pld_device_s *pld_device,
int num_words, uint32_t *words)
{
- virtex2_pld_device_t *virtex2_info = pld_device->driver_priv;
+ struct virtex2_pld_device *virtex2_info = pld_device->driver_priv;
struct scan_field scan_field;
uint8_t *values;
int i;
@@ -85,7 +85,7 @@ static __inline__ void virtexflip32(jtag_callback_data_t arg)
static int virtex2_receive_32(struct pld_device_s *pld_device,
int num_words, uint32_t *words)
{
- virtex2_pld_device_t *virtex2_info = pld_device->driver_priv;
+ struct virtex2_pld_device *virtex2_info = pld_device->driver_priv;
struct scan_field scan_field;
scan_field.tap = virtex2_info->tap;
@@ -133,7 +133,7 @@ static int virtex2_read_stat(struct pld_device_s *pld_device, uint32_t *status)
static int virtex2_load(struct pld_device_s *pld_device, const char *filename)
{
- virtex2_pld_device_t *virtex2_info = pld_device->driver_priv;
+ struct virtex2_pld_device *virtex2_info = pld_device->driver_priv;
struct xilinx_bit_file bit_file;
int retval;
unsigned int i;
@@ -180,7 +180,7 @@ static int virtex2_load(struct pld_device_s *pld_device, const char *filename)
COMMAND_HANDLER(virtex2_handle_read_stat_command)
{
pld_device_t *device;
- virtex2_pld_device_t *virtex2_info;
+ struct virtex2_pld_device *virtex2_info;
uint32_t status;
if (argc < 1)
@@ -211,7 +211,7 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command)
{
struct jtag_tap *tap;
- virtex2_pld_device_t *virtex2_info;
+ struct virtex2_pld_device *virtex2_info;
if (argc < 2)
{
@@ -225,7 +225,7 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command)
return ERROR_OK;
}
- virtex2_info = malloc(sizeof(virtex2_pld_device_t));
+ virtex2_info = malloc(sizeof(struct virtex2_pld_device));
virtex2_info->tap = tap;
pld->driver_priv = virtex2_info;
diff --git a/src/pld/virtex2.h b/src/pld/virtex2.h
index 2714dd7..8e07604 100644
--- a/src/pld/virtex2.h
+++ b/src/pld/virtex2.h
@@ -22,9 +22,9 @@
#include "jtag.h"
-typedef struct virtex2_pld_device_s
+struct virtex2_pld_device
{
struct jtag_tap *tap;
-} virtex2_pld_device_t;
+};
#endif /* VIRTEX2_H */