From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F93DFF885A for ; Mon, 4 May 2026 07:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t5cf6GpFPX5oImfKGPfuaROYvbGweYVrb2b5lMhqwlY=; b=Ux6zabPVnAqr5E AbHO+0HrwHG8CMdMZJumDpDpr1o3TTPG+QlC1jZBb0XJH4TtEDYSLJb2XPE1o4BmAnkVtP5bwDv65 EkY1R96bbJMaKDYhFhrrGTftArFeNCalNpghK/g9CVl6W3QJfnmafdMHMBtf0Ykttnqfak+13puit Zm6YZ4/hbQm+ugpTRVQ78Ey7D/UWk1/B7GfLW5VUnfXkVXBUhVc9XxQ40DtRfIyjEjJJvFHVA9RB3 KjPZ7weMBnJh/jbmtNqKTL2CBEd4Ur1aEKamgtDAuwhlIxjYWt90cF4YyiGqKt8aSYJb6DfSybEgj AMSL/7AQgNJ+G4lfRqnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wJnIf-0000000CYav-3tus; Mon, 04 May 2026 07:01:05 +0000 Received: from mgamail.intel.com ([192.198.163.12]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wJnIc-0000000CYYn-3K7b for linux-phy@lists.infradead.org; Mon, 04 May 2026 07:01:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777878062; x=1809414062; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=harktBiFvTyW0eTdv1xyo3FFw2GjXWrmry91+uh1PuI=; b=Zz9rEKdahsHxOHx51w2N7fyU8s628JFX9aPHG8h2h7LwNuHz8l5x5h3C 7m/6vA1EKjbWdDzVCRESO6wtLt3Vxey/pO6ICvSqV28JqRlvMOb7fYWon tQAkVhzZokswLuJ0p/3jcbHRZkg/hafIU+fIpYLEPBimxM5PqSFQmfdbu AKx4ivh7hfuDnd1fQwEXrieyEMBHamnQsBRVBI/vJg/hJbSh4pg7zpmP+ OW9yB14kYaCiFwiPgldrXZjCeWfCxurQr+DSJDNMhV5UsAWJy9sUcBQ3J 3IkRXAE5C8aAb53qV63e5gnhjAQCSFA6VgdT/XVI0OkyL81k/2abPaq4E A==; X-CSE-ConnectionGUID: kJRiq5ktToa6AYopVwpFAA== X-CSE-MsgGUID: X2NB04WMRimutTgrPFAiUg== X-IronPort-AV: E=McAfee;i="6800,10657,11775"; a="82582128" X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="82582128" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2026 00:01:01 -0700 X-CSE-ConnectionGUID: RfbcWwxES5KS/ONOQj+NLw== X-CSE-MsgGUID: 8uILAxpDToSZGx7mwtktIw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="239409101" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa003.jf.intel.com with ESMTP; 04 May 2026 00:00:59 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 3526099; Mon, 04 May 2026 09:00:58 +0200 (CEST) From: Andy Shevchenko To: Peng Fan , linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v3 1/4] phy: phy-can-transceiver: use device_get_match_data() Date: Mon, 4 May 2026 08:58:52 +0200 Message-ID: <20260504070054.29508-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260504070054.29508-1-andriy.shevchenko@linux.intel.com> References: <20260504070054.29508-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260504_000102_856023_582A5F08 X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Use the generic firmware node interface for retrieving device match data instead of the OF-specific one. While at it, drop unneeded argument to devm_phy_create() which extracts device node from the given device by default. Reviewed-by: Josua Mayer Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transceiver.c index 2b52e47f247a..80eece74f77d 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -5,9 +5,9 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com * */ -#include #include #include +#include #include #include #include @@ -152,7 +152,6 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) struct can_transceiver_phy *can_transceiver_phy; struct can_transceiver_priv *priv; const struct can_transceiver_data *drvdata; - const struct of_device_id *match; struct phy *phy; struct gpio_desc *silent_gpio; struct gpio_desc *standby_gpio; @@ -161,8 +160,7 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) u32 max_bitrate = 0; int err, i, num_ch = 1; - match = of_match_node(can_transceiver_phy_ids, pdev->dev.of_node); - drvdata = match->data; + drvdata = device_get_match_data(dev); if (drvdata->flags & CAN_TRANSCEIVER_DUAL_CH) num_ch = 2; @@ -187,7 +185,7 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) can_transceiver_phy = &priv->can_transceiver_phy[i]; can_transceiver_phy->priv = priv; - phy = devm_phy_create(dev, dev->of_node, &can_transceiver_phy_ops); + phy = devm_phy_create(dev, NULL, &can_transceiver_phy_ops); if (IS_ERR(phy)) { dev_err(dev, "failed to create can transceiver phy\n"); return PTR_ERR(phy); -- 2.50.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy