Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp891622lqd; Wed, 24 Apr 2024 22:52:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVpFCoG8Hm5Ql9GPVjC9AI2xOhTDmhYuTrwUrqCul/DYucAkFNMkZiEAPQXUqIaWxkcxIGKFr5fHthi10zPLrBRjOkMgEWG13RFcfGfQ== X-Google-Smtp-Source: AGHT+IGyStAX6vFLsNBaoKI39QKjYw0jIwxKCF3pEAbRrhWAQdPtrCWZCssdM2+CblyTPNh+DkZQ X-Received: by 2002:a05:6359:4119:b0:18d:8d90:5844 with SMTP id kh25-20020a056359411900b0018d8d905844mr4569650rwc.8.1714024372555; Wed, 24 Apr 2024 22:52:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714024372; cv=pass; d=google.com; s=arc-20160816; b=zlVs8LHJXOj5zg0TI+/X2ntu7Qesv6CgPYDand0sYrxU6kVIfhnMoZ9n58VmQ7DZhv 2sejC7EDAIgS7o12CIhdV6yyJqXwOi5aioXmiS1oDzzk9n7I9VEyMLNuxYcJKowtFHaP Ww/pCaDdF03uUblYWkWN9VHr2OYmr0XJUxwx2dcg55RG5R3TteMDb5iWas2tXvitfW5U Ec9CjSBsEPAWgcij/XBAX1fd0OEFA5MOLRXHzk7myUSfSsLnudBsDHrb1tViHRnJojaK ZbEqJUC1/48u+0zWD27BafpF2iM+SFDKNCBdr/xQLPt2y3IB8RDvnexUyn/hsvS6L8qd syUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=Au6PCN30y3dEk3rWp6rzXfnaA1em2pqgvEXdffv4t0o=; fh=cpD+ehYTg5Kkp9rm1NbzIZqwMaDwDybTA/27fbyX18M=; b=dqS6Z7DOvE9hnA4fT2xYd2rZ2LiW6LYyb3l35f30JWqwI/2K5dDIYEHrS9i0BVH2eN eUSBhg5p8nBtWA5A2Gc1ErbVNjxjSn1Aymi1HAs8ejQMJnw3KBkP/VnW2FFV/wCAP0PN G6bPaugWHtLnnzN0/LOdC7lzNwirAhjncfRBVA4Y14V3/nwlpcoRZv8wEDOvSLeek001 z4ySOyE/yAxmjLj/nbcOLuzFEpq4ygIzVJyBUKEWTYkvdh17HBgI2B7DVX4zCALPBszc x0dXGClG22gpGaWnQgd2WFazOtqLpxYP2gnL8qaNgGbPQnH1pR1xk1pUIyNEHmrhwiUX t3vQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=Ooz+ZMrB; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-157884-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d17-20020a639911000000b005dcc8a3fdc5si12404788pge.485.2024.04.24.22.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 22:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157884-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=Ooz+ZMrB; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-157884-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C5B5D28A16F for ; Thu, 25 Apr 2024 00:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF91B1DFE1; Thu, 25 Apr 2024 00:26:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="Ooz+ZMrB" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06754A35; Thu, 25 Apr 2024 00:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.208 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714004816; cv=none; b=GjlQrAq9CADgzUv2szj4mHWjmu/tT9gHxHcHzu7FVlFbUqjxdaCyaUb1l/PnJ2mRAE/Zg8ftYfZ/FPNJsev+aS4t59+3Bn3cUoCnU8rjIe17zyUoeFusfscU8Y8HxYTBKEXiWJ3B9qfdJMbCfc4y8rKvCTYzGBG87aeUJaXBLRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714004816; c=relaxed/simple; bh=ZFagWEYvJBD4GgAH/EVhAXHdfVqrRJ5Qc84fXqDt6To=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=u9jfYCYHq6f+Dj+eHPihl+ppe3+Mrsk+bNjS382SFXnqdHo7IMbSYedf3e+hJi7emlJutxPP4bYC4kUmArQpGWfkfbmuhQXnPl6NGf+ylh7A2707M9MdxbDlCffX1YIIGE07w/+0hegVWXj7XiCzyINP8wrvxNC8zQsq44BoqcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=Ooz+ZMrB; arc=none smtp.client-ip=192.19.144.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 68382C00150E; Wed, 24 Apr 2024 17:26:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 68382C00150E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1714004805; bh=ZFagWEYvJBD4GgAH/EVhAXHdfVqrRJ5Qc84fXqDt6To=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ooz+ZMrBGXlrrU/+yGUPCdaHyWxl5xE1O4jhIf2L7xDTF/nF41mHEjyOB/ENbXiV8 58RWm616PZfFgHsrvglg9qcoF6MdMPY2Gpa6c0xmT2uqHCHiBeShN/+cupzcQc7Ajs glAOkNNaDoPvttnzrlZHuODUHE0OLv+4JA5EGLyw= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 76E9318041CAC6; Wed, 24 Apr 2024 17:26:43 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Lee Jones , Jiawen Wu , Mengyuan Lou , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Andrew Lunn , Duanqiang Wen , linux-i2c@vger.kernel.org (open list:SYNOPSYS DESIGNWARE I2C DRIVER), netdev@vger.kernel.org (open list:WANGXUN ETHERNET DRIVER) Subject: [PATCH v2 4/4] net: txgbe: Utilize i2c-designware.h Date: Wed, 24 Apr 2024 17:26:42 -0700 Message-Id: <20240425002642.2053657-5-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240425002642.2053657-1-florian.fainelli@broadcom.com> References: <20240425002642.2053657-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rather than open code the i2c_designware string, utilize the newly defined constant in i2c-designware.h. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c index 93295916b1d2..7545aacc9c19 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -571,8 +572,8 @@ static int txgbe_clock_register(struct txgbe *txgbe) char clk_name[32]; struct clk *clk; - snprintf(clk_name, sizeof(clk_name), "i2c_designware.%d", - pci_dev_id(pdev)); + snprintf(clk_name, sizeof(clk_name), "%s.%d", + I2C_DESIGNWARE_NAME, pci_dev_id(pdev)); clk = clk_register_fixed_rate(NULL, clk_name, NULL, 0, 156250000); if (IS_ERR(clk)) @@ -634,7 +635,7 @@ static int txgbe_i2c_register(struct txgbe *txgbe) info.parent = &pdev->dev; info.fwnode = software_node_fwnode(txgbe->nodes.group[SWNODE_I2C]); - info.name = "i2c_designware"; + info.name = I2C_DESIGNWARE_NAME; info.id = pci_dev_id(pdev); info.res = &DEFINE_RES_IRQ(pdev->irq); -- 2.34.1