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>
This commit is contained in:
parent
7536a398e9
commit
338fd9ad30
25 changed files with 25 additions and 25 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ void chromeos_acpi_gpio_generate(const struct cros_gpio *gpios, size_t num);
|
|||
*/
|
||||
void mainboard_chromeos_acpi_generate(void);
|
||||
#if CONFIG(CHROMEOS)
|
||||
void chromeos_dsdt_generator(struct device *dev);
|
||||
void chromeos_dsdt_generator(const struct device *dev);
|
||||
#else
|
||||
#define chromeos_dsdt_generator NULL
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue