diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-24 22:57:05 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-28 19:51:25 +0000 |
commit | 338fd9ad305fa9a27d39b344aa458e677b64df50 (patch) | |
tree | e0e6da87d97a2a9b6bcda130e9ac41c5e5cd991e /src/vendorcode/google/chromeos/acpi.c | |
parent | 7536a398e978aa8ddb0e5f2ae12bae73a708b68f (diff) | |
download | coreboot-338fd9ad305fa9a27d39b344aa458e677b64df50.tar.xz |
device: Constify struct device * parameter to acpi_inject_dsdt
.acpi_inject_dsdt() does not need to modify the device
structure. Hence, this change makes the struct device * parameter to
acpi_inject_dsdt as const.
Change-Id: I3b096d9a5a9d649193e32ea686d5de9f78124997
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40711
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/google/chromeos/acpi.c')
-rw-r--r-- | src/vendorcode/google/chromeos/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/google/chromeos/acpi.c b/src/vendorcode/google/chromeos/acpi.c index fad1256b0f..abd5b67095 100644 --- a/src/vendorcode/google/chromeos/acpi.c +++ b/src/vendorcode/google/chromeos/acpi.c @@ -35,7 +35,7 @@ void chromeos_acpi_gpio_generate(const struct cros_gpio *gpios, size_t num) acpigen_pop_len(); } -void chromeos_dsdt_generator(struct device *dev) +void chromeos_dsdt_generator(const struct device *dev) { mainboard_chromeos_acpi_generate(); } |