diff options
author | 2021-06-04 19:50:46 +0300 | |
---|---|---|
committer | 2021-06-07 14:43:41 +0200 | |
commit | 3d7c821c1d8071e517048c8b4afdf33109441c0f (patch) | |
tree | 503eaae0f56b5d4031a7215c133438f56686a35c /include/acpi/acpi_bus.h | |
parent | ACPI: property: Constify stubs for CONFIG_ACPI=n case (diff) | |
download | linux-3d7c821c1d8071e517048c8b4afdf33109441c0f.tar.gz linux-3d7c821c1d8071e517048c8b4afdf33109441c0f.tar.bz2 linux-3d7c821c1d8071e517048c8b4afdf33109441c0f.zip |
ACPI: scan: Constify acpi_dma_supported() helper function
Constify arguments to acpi_dma_supported(). The function doesn't need
to change the content of the passed argument and when it's const it
allows to supply the result of other functions that may return a pointer
to a constant object.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 3a82faac5767..2fbd2c2e0568 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -586,7 +586,7 @@ struct acpi_pci_root { /* helper */ -bool acpi_dma_supported(struct acpi_device *adev); +bool acpi_dma_supported(const struct acpi_device *adev); enum dev_dma_attr acpi_get_dma_attr(struct acpi_device *adev); int acpi_dma_get_range(struct device *dev, u64 *dma_addr, u64 *offset, u64 *size); |