Skip to content

Commit d8d9919

Browse files
hkallweitwsakernel
authored andcommitted
i2c: i801: Use new helper acpi_use_parent_companion
Use new helper acpi_use_parent_companion to simplify the code. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 29166fa commit d8d9919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
16231623
priv->adapter.class = I2C_CLASS_HWMON;
16241624
priv->adapter.algo = &smbus_algorithm;
16251625
priv->adapter.dev.parent = &dev->dev;
1626-
ACPI_COMPANION_SET(&priv->adapter.dev, ACPI_COMPANION(&dev->dev));
1626+
acpi_use_parent_companion(&priv->adapter.dev);
16271627
priv->adapter.retries = 3;
16281628

16291629
priv->pci_dev = dev;

0 commit comments

Comments
 (0)