summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/include/intelblocks
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-04-24 21:53:42 -0700
committerFurquan Shaikh <furquan@google.com>2020-04-28 19:50:17 +0000
commitec3dafd97ccdc4cd4b08476724f3f53a47fbdb7a (patch)
tree5a23d76a8217b042fe4988ca69a88e488ace91b6 /src/soc/intel/common/block/include/intelblocks
parent3b54fdf282797ca2950341cdba32bb6f451ef53d (diff)
downloadcoreboot-ec3dafd97ccdc4cd4b08476724f3f53a47fbdb7a.tar.xz
soc/intel: Constify struct device * parameter to intel_igd_get_controller_info
intel_igd_get_controller_info() does not need to modify the device structure. Hence, this change makes the struct device * parameter to intel_igd_get_controller_info() as const. Change-Id: Ic044a80e3e2c45af6824a23f3cd0b08b94c0f279 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40709 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/graphics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/graphics.h b/src/soc/intel/common/block/include/intelblocks/graphics.h
index 4187ca10cc..378fdd0567 100644
--- a/src/soc/intel/common/block/include/intelblocks/graphics.h
+++ b/src/soc/intel/common/block/include/intelblocks/graphics.h
@@ -35,7 +35,7 @@ uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
/* i915 controller info for ACPI backlight controls */
const struct i915_gpu_controller_info *
-intel_igd_get_controller_info(struct device *device);
+intel_igd_get_controller_info(const struct device *device);
/* Graphics MMIO register read/write APIs */
uint32_t graphics_gtt_read(unsigned long reg);