mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
b7202b8870
commit
bebd12717c
2 changed files with 14 additions and 14 deletions
4
hw/sd.h
4
hw/sd.h
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue