From 7536a398e978aa8ddb0e5f2ae12bae73a708b68f Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 24 Apr 2020 21:59:21 -0700 Subject: device: Constify struct device * parameter to acpi_fill_ssdt() .acpi_fill_ssdt() does not need to modify the device structure. This change makes the struct device * parameter to acpi_fill_ssdt() as const. Change-Id: I110f4c67c3b6671c9ac0a82e02609902a8ee5d5c Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/c/coreboot/+/40710 Reviewed-by: HAOUAS Elyes Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/ec/lenovo/h8/h8.h | 2 +- src/ec/lenovo/h8/ssdt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ec/lenovo') diff --git a/src/ec/lenovo/h8/h8.h b/src/ec/lenovo/h8/h8.h index 8999cc377a..5b2ae1ead9 100644 --- a/src/ec/lenovo/h8/h8.h +++ b/src/ec/lenovo/h8/h8.h @@ -35,7 +35,7 @@ void h8_wwan_enable(int on); bool h8_wwan_nv_enable(void); bool h8_has_wwan(const struct device *dev); -void h8_ssdt_generator(struct device *dev); +void h8_ssdt_generator(const struct device *dev); /* EC registers */ #define H8_CONFIG0 0x00 diff --git a/src/ec/lenovo/h8/ssdt.c b/src/ec/lenovo/h8/ssdt.c index 6b821a40f2..56e305a787 100644 --- a/src/ec/lenovo/h8/ssdt.c +++ b/src/ec/lenovo/h8/ssdt.c @@ -8,7 +8,7 @@ #include "h8.h" #include "chip.h" -static char *h8_dsdt_scope(struct device *dev, const char *scope) +static char *h8_dsdt_scope(const struct device *dev, const char *scope) { static char buf[DEVICE_PATH_MAX] = {}; const char *path = acpi_device_path(dev); @@ -22,7 +22,7 @@ static char *h8_dsdt_scope(struct device *dev, const char *scope) /* * Generates EC SSDT. */ -void h8_ssdt_generator(struct device *dev) +void h8_ssdt_generator(const struct device *dev) { struct ec_lenovo_h8_config *conf = dev->chip_info; -- cgit v1.2.3