summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-06-04 19:50:46 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-07 14:43:41 +0200
commit3d7c821c1d8071e517048c8b4afdf33109441c0f (patch)
tree503eaae0f56b5d4031a7215c133438f56686a35c /drivers/acpi
parent5c1a72a0fbe1b02c3ce0537f85f92ea935e0beec (diff)
downloadlinux-stable-3d7c821c1d8071e517048c8b4afdf33109441c0f.tar.gz
linux-stable-3d7c821c1d8071e517048c8b4afdf33109441c0f.tar.bz2
linux-stable-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 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index a22778e880c2..609405ca11e2 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1404,7 +1404,7 @@ void acpi_free_pnp_ids(struct acpi_device_pnp *pnp)
*
* Return false if DMA is not supported. Otherwise, return true
*/
-bool acpi_dma_supported(struct acpi_device *adev)
+bool acpi_dma_supported(const struct acpi_device *adev)
{
if (!adev)
return false;