diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-01-28 10:45:17 +0000 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-31 19:36:44 +0100 |
| commit | 08726e8259c09592cd7415ebae55c43a12d9657d (patch) | |
| tree | 87dcc5b2fbdc03ec3d7481b63f83c0493322e953 /include/hw/sd/sd.h | |
| parent | 1671542fcefe6e00c4e039ecf1799a164f596b61 (diff) | |
| download | focaccia-qemu-08726e8259c09592cd7415ebae55c43a12d9657d.tar.gz focaccia-qemu-08726e8259c09592cd7415ebae55c43a12d9657d.zip | |
hw/sd: Remove unused 'enable' method from SDCardClass
The SDCardClass has an 'enable' method, but nothing actually invokes it. The underlying implementation is sd_enable(), which is documented in sdcard_legacy.h as something that should not be used and was only present for the benefit of the now-removed nseries boards. Unlike all the other method pointers in SDCardClass, this one doesn't have an sdbus_foo() function wrapper in hw/sd/core.c. Remove the unused method. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250128104519.3981448-10-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/hw/sd/sd.h')
| -rw-r--r-- | include/hw/sd/sd.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/sd/sd.h b/include/hw/sd/sd.h index f2458f37b3..d6bad17513 100644 --- a/include/hw/sd/sd.h +++ b/include/hw/sd/sd.h @@ -119,7 +119,6 @@ struct SDCardClass { void (*set_voltage)(SDState *sd, uint16_t millivolts); uint8_t (*get_dat_lines)(SDState *sd); bool (*get_cmd_line)(SDState *sd); - void (*enable)(SDState *sd, bool enable); bool (*get_inserted)(SDState *sd); bool (*get_readonly)(SDState *sd); void (*set_cid)(SDState *sd); |