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>
This commit is contained in:
Mitsyanko Igor 2012-08-13 11:04:07 +01:00 committed by Peter Maydell
parent bebd12717c
commit 879bf4a716
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 */