diff options
author | Philippe Mathieu-Daudé | 2020-05-12 21:49:17 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-06-17 14:53:39 +0200 |
commit | ae0cebd71215188951902c5ccdd8685e431c286c (patch) | |
tree | f8f9ecf070183afdec102955670a0e7fa3bbd5cf /hw/ide/core.c | |
parent | Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-and-plugin-16... (diff) | |
download | qemu-ae0cebd71215188951902c5ccdd8685e431c286c.tar.gz qemu-ae0cebd71215188951902c5ccdd8685e431c286c.tar.xz qemu-ae0cebd71215188951902c5ccdd8685e431c286c.zip |
hw/ide: Make IDEDMAOps handlers take a const IDEDMA pointer
Handlers don't need to modify the IDEDMA structure.
Make it const.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200512194917.15807-1-philmd@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/core.c')
-rw-r--r-- | hw/ide/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c index 689bb36409..d997a78e47 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -2570,16 +2570,16 @@ static void ide_init1(IDEBus *bus, int unit) ide_sector_write_timer_cb, s); } -static int ide_nop_int(IDEDMA *dma, bool is_write) +static int ide_nop_int(const IDEDMA *dma, bool is_write) { return 0; } -static void ide_nop(IDEDMA *dma) +static void ide_nop(const IDEDMA *dma) { } -static int32_t ide_nop_int32(IDEDMA *dma, int32_t l) +static int32_t ide_nop_int32(const IDEDMA *dma, int32_t l) { return 0; } |