summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2019-07-29 15:40:53 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-31 09:10:28 +0000
commit28883db36f21cdf7cf1b83737d37484057d8d10c (patch)
treeea2ffab6509329ad854c7d86cc2e691f05fc8ac8 /src/device
parentfa781fa52ce06563efdc1e156cd1b6f3955890f3 (diff)
downloadcoreboot-28883db36f21cdf7cf1b83737d37484057d8d10c.tar.xz
device: Constify `dev` argument to (probe|find)_resource()
Change-Id: I7abca61db61d2f2df149ca601631c45d8c4f342e Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34613 Reviewed-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 3f503b54f8..38303126bc 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -331,7 +331,7 @@ void compact_resources(struct device *dev)
* @param index The index of the resource on the device.
* @return The resource, if it already exists.
*/
-struct resource *probe_resource(struct device *dev, unsigned index)
+struct resource *probe_resource(const struct device *dev, unsigned index)
{
struct resource *res;
@@ -401,7 +401,7 @@ struct resource *new_resource(struct device *dev, unsigned index)
* @param index The index of the resource on the device.
* return TODO.
*/
-struct resource *find_resource(struct device *dev, unsigned index)
+struct resource *find_resource(const struct device *dev, unsigned index)
{
struct resource *resource;