diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/i2c/sx9310/sx9310.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c index 7da87c480a..5f63734c9b 100644 --- a/src/drivers/i2c/sx9310/sx9310.c +++ b/src/drivers/i2c/sx9310/sx9310.c @@ -36,7 +36,7 @@ static void i2c_sx9310_fill_ssdt(struct device *dev) struct acpi_i2c i2c = { .address = dev->path.i2c.device, .mode_10bit = dev->path.i2c.mode_10bit, - .speed = config->speed ? : I2C_SPEED_FAST, + .speed = I2C_SPEED_FAST, .resource = scope, }; struct acpi_dp *dsd; @@ -44,6 +44,9 @@ static void i2c_sx9310_fill_ssdt(struct device *dev) if (!dev->enabled || !scope || !config) return; + if (config->speed) + i2c.speed = config->speed; + /* Device */ acpigen_write_scope(scope); acpigen_write_device(acpi_device_name(dev)); |