Skip to content

Commit 663bb7b

Browse files
phab-cprwsakernel
authored andcommitted
i2c: kempld: Support ACPI I2C device declaration
Adds an ACPI companion to the KEMPLD I2C driver so that it correctly detects any I2C devices nested under the KEMPLD's ACPI node (SBRG.CPLD). This allows I2C devices attached to the KEMPLD I2C adapter to be declared and instantiated via ACPI. Signed-off-by: Chris Pringle <chris.pringle@phabrix.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 1b48006 commit 663bb7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-kempld.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ static int kempld_i2c_probe(struct platform_device *pdev)
303303
i2c->dev = &pdev->dev;
304304
i2c->adap = kempld_i2c_adapter;
305305
i2c->adap.dev.parent = i2c->dev;
306+
ACPI_COMPANION_SET(&i2c->adap.dev, ACPI_COMPANION(&pdev->dev));
306307
i2c_set_adapdata(&i2c->adap, i2c);
307308
platform_set_drvdata(pdev, i2c);
308309

0 commit comments

Comments
 (0)