diff options
author | Mitsyanko Igor <i.mitsyanko@samsung.com> | 2012-08-13 11:04:06 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-08-13 11:04:06 +0100 |
commit | bebd12717c76b251514098bb9682d0309642e565 (patch) | |
tree | c7c421d11ba3a7e5f10f46b0385614510c216cbf /hw/sd.h | |
parent | b7202b8870ebb8e9b0246361c96e129172738f82 (diff) |
hw/sd.c: convert binary variables to bool
Several members of SDState have type int when they actually are binary variables.
Change type of these variables to bool to improve code readability. Change SD API
to be in consistency with new variables type.
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/sd.h')
-rw-r--r-- | hw/sd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -67,13 +67,13 @@ typedef struct { typedef struct SDState SDState; -SDState *sd_init(BlockDriverState *bs, int is_spi); +SDState *sd_init(BlockDriverState *bs, bool is_spi); 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); void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert); int sd_data_ready(SDState *sd); -void sd_enable(SDState *sd, int enable); +void sd_enable(SDState *sd, bool enable); #endif /* __hw_sd_h */ |