aboutsummaryrefslogtreecommitdiffstats
path: root/hw/sd.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-10 01:44:56 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-10 01:44:56 +0100
commitbc24a225af2464dc30f88d6f930779cbf0e22b67 (patch)
tree6df682b479f89863159f836e1dc292623ab577e1 /hw/sd.h
parentd4ec5228821b8bdd8019cb5dafa2ea3659ddb1f9 (diff)
Follow coding conventions
Remove explicit struct qualifiers and rename structure types. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/sd.h')
-rw-r--r--hw/sd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/sd.h b/hw/sd.h
index cb7bc9c9a..8092b9385 100644
--- a/hw/sd.h
+++ b/hw/sd.h
@@ -59,16 +59,16 @@ typedef enum {
sd_adtc, /* addressed with data transfer */
} sd_cmd_type_t;
-struct sd_request_s {
+typedef struct {
uint8_t cmd;
uint32_t arg;
uint8_t crc;
-};
+} SDRequest;
typedef struct SDState SDState;
SDState *sd_init(BlockDriverState *bs, int is_spi);
-int sd_do_command(SDState *sd, struct sd_request_s *req,
+int sd_do_command(SDState *sd, SDRequest *req,
uint8_t *response);
void sd_write_data(SDState *sd, uint8_t value);
uint8_t sd_read_data(SDState *sd);