summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMitsyanko Igor <i.mitsyanko@samsung.com>2012-08-13 11:04:07 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-08-13 11:04:07 +0100
commit879bf4a716410c9c7933dea5a5f3d3867734efb6 (patch)
tree4cdf6921c6dd274b56453d6af7c1c739a9cfc5f3 /hw
parentbebd12717c76b251514098bb9682d0309642e565 (diff)
downloadqemu-879bf4a716410c9c7933dea5a5f3d3867734efb6.tar.gz
qemu-879bf4a716410c9c7933dea5a5f3d3867734efb6.tar.bz2
qemu-879bf4a716410c9c7933dea5a5f3d3867734efb6.zip
hw/sd.c: make sd_dataready() return bool
For the sake of code clarity Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/sd.c2
-rw-r--r--hw/sd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/sd.c b/hw/sd.c
index ebc4e7c97f..209bc1936c 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -1703,7 +1703,7 @@ uint8_t sd_read_data(SDState *sd)
return ret;
}
-int sd_data_ready(SDState *sd)
+bool sd_data_ready(SDState *sd)
{
return sd->state == sd_sendingdata_state;
}
diff --git a/hw/sd.h b/hw/sd.h
index d25342f645..4eb9679acd 100644
--- a/hw/sd.h
+++ b/hw/sd.h
@@ -73,7 +73,7 @@ int sd_do_command(SDState *sd, SDRequest *req,
void sd_write_data(SDState *sd, uint8_t value);
uint8_t sd_read_data(SDState *sd);
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert);
-int sd_data_ready(SDState *sd);
+bool sd_data_ready(SDState *sd);
void sd_enable(SDState *sd, bool enable);
#endif /* __hw_sd_h */