diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-15 15:38:19 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | dc8d6cf2033c813ade9863a926f2d71a22edd249 (patch) | |
tree | 198ca8472ae6b0b6474358beecf6e90b058e9fca /hw/isa | |
parent | e5bf2779a1feafa85adae9a8ba22cbb54af00c85 (diff) |
hw/isa: Rename isa_get_dma() -> isa_bus_get_dma()
isa_get_dma() returns a DMA channel handler from an ISABus.
To emphasize this, rename it as isa_bus_get_dma().
Mechanical change using:
$ sed -i -e 's/isa_get_dma/isa_bus_get_dma/g' \
$(git grep -l isa_get_dma)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230215161641.32663-2-philmd@linaro.org>
Diffstat (limited to 'hw/isa')
-rw-r--r-- | hw/isa/isa-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index b3d2e5ec52..80d8fb4c5b 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -99,7 +99,7 @@ void isa_bus_dma(ISABus *bus, IsaDma *dma8, IsaDma *dma16) bus->dma[1] = dma16; } -IsaDma *isa_get_dma(ISABus *bus, int nchan) +IsaDma *isa_bus_get_dma(ISABus *bus, int nchan) { assert(bus); return bus->dma[nchan > 3 ? 1 : 0]; |