From adb176b81a14f048d64e26980c0b4a87068dca66 Mon Sep 17 00:00:00 2001 From: Sathyanarayana Nujella Date: Thu, 24 May 2018 23:46:51 -0700 Subject: drivers/i2c/max98373: update DT property names Upstream Kernel side codec driver expect DT properties to have 'maxim' prefix. Update accordingly while filling SSDT entries. BUG=b:79362472 TEST=dump DT properties in kerenl side and cross checked TEST=Audio playback works with this change Change-Id: Iaa4b14492dbb5a0087242f1485493f3192336f60 Signed-off-by: Sathyanarayana Nujella Reviewed-on: https://review.coreboot.org/26532 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- src/drivers/i2c/max98373/max98373.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/drivers/i2c/max98373') diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c index 576667176a..19dd7879e9 100644 --- a/src/drivers/i2c/max98373/max98373.c +++ b/src/drivers/i2c/max98373/max98373.c @@ -62,9 +62,11 @@ static void max98373_fill_ssdt(struct device *dev) /* Device Properties */ dp = acpi_dp_new_table("_DSD"); - acpi_dp_add_integer(dp, "interleave_mode", config->interleave_mode); - acpi_dp_add_integer(dp, "vmon-slot-no", config->vmon_slot_no); - acpi_dp_add_integer(dp, "imon-slot-no", config->imon_slot_no); + if (config->interleave_mode) + acpi_dp_add_integer(dp, "maxim,interleave_mode", + config->interleave_mode); + acpi_dp_add_integer(dp, "maxim,vmon-slot-no", config->vmon_slot_no); + acpi_dp_add_integer(dp, "maxim,imon-slot-no", config->imon_slot_no); acpi_dp_write(dp); -- cgit v1.2.3