All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Jean Delvare <jdelvare@suse.com>,
	Andi Shyti <andi.shyti@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>
Cc: "linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
	linux-acpi@vger.kernel.org
Subject: [PATCH 2/2] i2c: i801: Use new helper acpi_use_parent_companion
Date: Sun, 15 Oct 2023 23:36:17 +0200	[thread overview]
Message-ID: <206f0f25-8a83-4e53-89fd-cbe025e5798d@gmail.com> (raw)
In-Reply-To: <6e935761-5b36-411a-ac82-cbc394bba7b6@gmail.com>

Use new helper acpi_use_parent_companion to simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/i2c/busses/i2c-i801.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index a41f5349a..ac223146c 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1620,7 +1620,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;
-- 
2.42.0



  reply	other threads:[~2023-10-15 21:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-15 21:33 [PATCH 0/2] Add and use new helper acpi_use_parent_companion Heiner Kallweit
2023-10-15 21:34 ` [PATCH 1/2] ACPI: Add " Heiner Kallweit
2023-10-15 21:36   ` Heiner Kallweit [this message]
2023-10-16 16:09     ` [PATCH 2/2] i2c: i801: Use new " Wilczynski, Michal
2023-10-16 17:32       ` Rafael J. Wysocki
2023-10-16 20:05         ` Heiner Kallweit
2023-10-24 13:09           ` Jean Delvare
2023-10-28 13:29             ` Wolfram Sang
2023-10-24 17:34     ` Andi Shyti
2023-10-28 13:31     ` Wolfram Sang
2023-10-18 10:51   ` [PATCH 1/2] ACPI: Add " Rafael J. Wysocki
2023-10-18 12:19     ` Heiner Kallweit
2023-10-24 17:33   ` Andi Shyti
2023-10-26 17:26     ` Wolfram Sang
2023-10-26 20:17       ` Heiner Kallweit
2023-10-28 13:30   ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=206f0f25-8a83-4e53-89fd-cbe025e5798d@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=andi.shyti@kernel.org \
    --cc=jdelvare@suse.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.