From ec3dafd97ccdc4cd4b08476724f3f53a47fbdb7a Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 24 Apr 2020 21:53:42 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40709 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/skylake/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/skylake') diff --git a/src/soc/intel/skylake/graphics.c b/src/soc/intel/skylake/graphics.c index 5be398c717..e1f8fbd3c4 100644 --- a/src/soc/intel/skylake/graphics.c +++ b/src/soc/intel/skylake/graphics.c @@ -177,7 +177,7 @@ uintptr_t graphics_soc_write_acpi_opregion(const struct device *device, } const struct i915_gpu_controller_info * -intel_igd_get_controller_info(struct device *device) +intel_igd_get_controller_info(const struct device *device) { struct soc_intel_skylake_config *chip = device->chip_info; return &chip->gfx; -- cgit v1.2.3