diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2023-10-15 23:36:17 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-10-28 15:30:39 +0200 |
commit | d8d9919f4579a04d250b754e15597bfcf9379c14 (patch) | |
tree | 0679e3eb6e818d3c8aa36bf8de0752e12316b652 /drivers/i2c | |
parent | ACPI: Add helper acpi_use_parent_companion (diff) | |
download | linux-d8d9919f4579a04d250b754e15597bfcf9379c14.tar.xz linux-d8d9919f4579a04d250b754e15597bfcf9379c14.zip |
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 <hkallweit1@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 70f2d23389f6..070999139c6d 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -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; |