summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/max98390
diff options
context:
space:
mode:
authorSeunghwan Kim <sh_.kim@samsung.corp-partner.google.com>2020-05-18 15:01:06 +0900
committerPatrick Georgi <pgeorgi@google.com>2020-05-20 09:11:23 +0000
commit8952de55cb4949969b09219fdf6b9b14f3b59b0c (patch)
tree18ac1ea2d20224daa7391471d454de994852c2e3 /src/drivers/i2c/max98390
parent40d00ddcf2bac3d1f5f512a1ea0cc34089245d75 (diff)
driver/i2c/max98390: Fix build error related to max98390 driver
Fix coreboot build error with adding this driver BUG=b:149443429 BRANCH=None TEST=built without errors Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com> Change-Id: I2d76ec72ca6ae9ac54ab05f15ea92beb645acd5c Reviewed-on: https://review.coreboot.org/c/coreboot/+/41496 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/i2c/max98390')
-rw-r--r--src/drivers/i2c/max98390/max98390.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c
index c8d7699d0b..24c500bd2e 100644
--- a/src/drivers/i2c/max98390/max98390.c
+++ b/src/drivers/i2c/max98390/max98390.c
@@ -15,7 +15,7 @@
#define MAX98390_DP_INT(key, val) acpi_dp_add_integer(dp, "maxim," key, (val))
-static void max98390_fill_ssdt(struct device *dev)
+static void max98390_fill_ssdt(const struct device *dev)
{
struct drivers_i2c_max98390_config *config = dev->chip_info;
const char *scope = acpi_device_scope(dev);
@@ -86,7 +86,7 @@ static struct device_operations max98390_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = max98390_acpi_name,
- .acpi_fill_ssdt_generator = max98390_fill_ssdt,
+ .acpi_fill_ssdt = max98390_fill_ssdt,
};
static void max98390_enable(struct device *dev)