summaryrefslogtreecommitdiff
path: root/hw/sd.c
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.c
parentd4ec5228821b8bdd8019cb5dafa2ea3659ddb1f9 (diff)
downloadqemu-bc24a225af2464dc30f88d6f930779cbf0e22b67.tar.gz
Follow coding conventions
Remove explicit struct qualifiers and rename structure types. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 284cd08840..fc92530135 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -301,7 +301,7 @@ static void sd_set_sdstatus(SDState *sd)
memset(sd->sd_status, 0, 64);
}
-static int sd_req_crc_validate(struct sd_request_s *req)
+static int sd_req_crc_validate(SDRequest *req)
{
uint8_t buffer[5];
buffer[0] = 0x40 | req->cmd;
@@ -580,7 +580,7 @@ static void sd_lock_command(SDState *sd)
}
static sd_rsp_type_t sd_normal_command(SDState *sd,
- struct sd_request_s req)
+ SDRequest req)
{
uint32_t rca = 0x0000;
@@ -1119,7 +1119,7 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
}
static sd_rsp_type_t sd_app_command(SDState *sd,
- struct sd_request_s req) {
+ SDRequest req) {
uint32_t rca;
if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc)
@@ -1228,7 +1228,7 @@ static sd_rsp_type_t sd_app_command(SDState *sd,
return sd_r0;
}
-int sd_do_command(SDState *sd, struct sd_request_s *req,
+int sd_do_command(SDState *sd, SDRequest *req,
uint8_t *response) {
uint32_t last_status = sd->card_status;
sd_rsp_type_t rtype;