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>
This commit is contained in:
parent
3b54fdf282
commit
ec3dafd97c
|
@ -34,7 +34,7 @@ __weak void graphics_soc_init(struct device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
__weak const struct i915_gpu_controller_info *
|
__weak const struct i915_gpu_controller_info *
|
||||||
intel_igd_get_controller_info(struct device *device)
|
intel_igd_get_controller_info(const struct device *device)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||||
|
|
||||||
/* i915 controller info for ACPI backlight controls */
|
/* i915 controller info for ACPI backlight controls */
|
||||||
const struct i915_gpu_controller_info *
|
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 */
|
/* Graphics MMIO register read/write APIs */
|
||||||
uint32_t graphics_gtt_read(unsigned long reg);
|
uint32_t graphics_gtt_read(unsigned long reg);
|
||||||
|
|
|
@ -177,7 +177,7 @@ uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct i915_gpu_controller_info *
|
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;
|
struct soc_intel_skylake_config *chip = device->chip_info;
|
||||||
return &chip->gfx;
|
return &chip->gfx;
|
||||||
|
|
Loading…
Reference in New Issue