hw/sd/sdcard: Make sd_data_ready() static
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 16 Feb 2018 02:01:26 +0000 (23:01 -0300)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 21 Aug 2020 14:23:15 +0000 (16:23 +0200)
sd_data_ready() belongs to the legacy API. As its last user has
been converted to the SDBus API, make it static.

Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-Id: <20180216022933.10945-7-f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sd.c
include/hw/sd/sd.h

index fad9cf1ee7a8eec8e3abc92ed1831205ed118812..a5ae5dccbe5e2816e4f5eece12a683bbb80bf670 100644 (file)
@@ -2082,7 +2082,7 @@ uint8_t sd_read_data(SDState *sd)
     return ret;
 }
 
-bool sd_data_ready(SDState *sd)
+static bool sd_data_ready(SDState *sd)
 {
     return sd->state == sd_sendingdata_state;
 }
index a84b8e274a32c09dcf7ee951989593e79ebc3a30..ace350e0e83920bd886df68e4316774a9c0f80aa 100644 (file)
@@ -143,7 +143,6 @@ 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);
-bool sd_data_ready(SDState *sd);
 /* sd_enable should not be used -- it is only used on the nseries boards,
  * where it is part of a broken implementation of the MMC card slot switch
  * (there should be two card slots which are multiplexed to a single MMC