From fdc1b2e6b44b2eec04ad9f67e4c7e63b64cd066f Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 13 Dec 2016 21:50:32 -0800 Subject: drivers/i2c: Pass in i2c_generic_config into i2c_generic_fill_ssdt Remove any assumptions required for the drivers using i2c_generic to have drivers_i2c_generic_config structure at the start of the driver config. Instead pass in a pointer to drivers_i2c_generic_config from the calling driver. Change-Id: I51dc4cad1c1f246b51891abf7115a7120e87b098 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/17857 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/drivers/i2c/alps/alps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/i2c/alps') diff --git a/src/drivers/i2c/alps/alps.c b/src/drivers/i2c/alps/alps.c index 2686f6c0ca..f0ccd6c44e 100644 --- a/src/drivers/i2c/alps/alps.c +++ b/src/drivers/i2c/alps/alps.c @@ -30,7 +30,8 @@ static void i2c_alps_fill_dsm(struct device *dev) static void i2c_alps_fill_ssdt_generator(struct device *dev) { - i2c_generic_fill_ssdt(dev, &i2c_alps_fill_dsm); + struct drivers_i2c_alps_config *config = dev->chip_info; + i2c_generic_fill_ssdt(dev, &i2c_alps_fill_dsm, &config->generic); } static const char *i2c_alps_acpi_name(struct device *dev) -- cgit v1.2.3