i2c: i801: Use new helper acpi_use_parent_companion
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 15 Oct 2023 21:36:17 +0000 (23:36 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 28 Oct 2023 13:30:39 +0000 (15:30 +0200)
Use new helper acpi_use_parent_companion to simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c

index 70f2d23389f63aa16d4d7c4d044aaa15648a2209..070999139c6dcbe24ddde994543cf1ec9df74e82 100644 (file)
@@ -1623,7 +1623,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
        priv->adapter.class = I2C_CLASS_HWMON;
        priv->adapter.algo = &smbus_algorithm;
        priv->adapter.dev.parent = &dev->dev;
-       ACPI_COMPANION_SET(&priv->adapter.dev, ACPI_COMPANION(&dev->dev));
+       acpi_use_parent_companion(&priv->adapter.dev);
        priv->adapter.retries = 3;
 
        priv->pci_dev = dev;