Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp34092lqf; Thu, 25 Apr 2024 20:52:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDefiY0T5FYS2RU5wBW+kHnA2VhwN4JmlxBvDcVYijoJ2F029+0HTznAqljQX2dAD/pVtwhXAEXoWmjnhMSpcQsiJAnY5W74n/DXKECA== X-Google-Smtp-Source: AGHT+IE2lx/A8qF1tpdIhAyjogio1vpvM8/2+x+UcF/6/SGJMhqvgCal+4FRMN32y15O0VQIzFkw X-Received: by 2002:a17:902:eccc:b0:1e3:d470:823d with SMTP id a12-20020a170902eccc00b001e3d470823dmr1845872plh.21.1714103562357; Thu, 25 Apr 2024 20:52:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714103562; cv=pass; d=google.com; s=arc-20160816; b=unK1biKVr6PIDQIlr8OBuEFTdfEm4Jr9fRk71aCb90imnzekfvnQVfarxnBkaY/zAb SdKh+HGEyaCXMKDariBG4xWZEaGJ3XPRjmROm4f6p/Qq3Rfe7uBcncghHCZCioC5PWXJ sKQ15saR/Ddbk2TO9GEm3jilvrLY06AWH7WtpSqgjNH1QevUdKxJ8iaI28nx0B5c6I+g 9urzltvpvvVNPzVJCGc3F9W5r7Xl4usFLw5SvaUcoSE54Jo5XA/YC4mmSytAojcZidkx 2SUWMZCKjB5BPwrmBI6G1+A3vGZr/6ep4NIXrgd1N3f8e9Ug3RkCrAF3UqD7npm4Zh3l drFw== 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=Pp5Nw8ZNG+4Nq2/9xb+8Z/1TSwfAcEtQOhiY8dZocc4=; fh=cpD+ehYTg5Kkp9rm1NbzIZqwMaDwDybTA/27fbyX18M=; b=xEcsqhBNIpfCPlupnj5tn19ltYQVrT8CG8R5Zp94+XI0NWkXtP0HqvlsOSmNuP69JB nl3Gj/fZI8VLWML0kn0PJo+eWjATP2gCAOMBi9OhtjGWh+/F/p071awPtC4PPeftbU2a XeMtEJLJSwTUlQ7hvGlYXExxWEnURmcXHGJxz88dQQ3Vxyw1Vf7Op9QIVoTD59WB6esd Hp7NBfznf2I2Q368HDTHU0x+Q3qCwu/fJO/9nmPMObXyEPBpXMqaLZADVbln+GolIXZo wbbKUfpU7vWNXlj8K40yoxskriImTow2xwP/yTrkZ3iahVZXl2OJeOanxOx2GSxWQTZT OmjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=emc2KvjJ; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-159237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159237-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i13-20020a170902c94d00b001e51158e3f4si14611969pla.67.2024.04.25.20.52.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 20:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=emc2KvjJ; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-159237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159237-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 2F62428719E for ; Thu, 25 Apr 2024 21:46:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF6015AD97; Thu, 25 Apr 2024 21:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="emc2KvjJ" 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 5D1A8155739; Thu, 25 Apr 2024 21:44:44 +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=1714081489; cv=none; b=YSgb3V6IvQ3g9DE1MyzdlwwrLxAiPrlyLgrT3h4nmkuMa2QEzhJSnJ/RMOuswxWA+hPRHooEdZXC2lVTWt/kyg7HjqzW8Ez1fN96O/6dMs+zhAHwn6qhfK8Y4Vpsb2RhHC5Q+oIo+HjRV73xffe7lrThiBN74L0vm1abOd/DF50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081489; c=relaxed/simple; bh=bh0Gh/pQHLvaTDCe1mGlX2hRI+Z5t3HiiUgGmfeGYOE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lG0WoH4oN7EyZZBQW2uuUGvnF1zAoRVdbywG9jL4y6tp+5Gn5OiAP0Ix40+89Q+KEY0YlQIobZy5i73qb3MKzse/fn1PDDJRBTc8Ixz52E/YSKSGXgJny5MoHzAlPmbQ0/On5CBaINagTVwXSt7S34eS0cy/u9PqZPTw1heUldo= 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=emc2KvjJ; 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 19B93C0003C8; Thu, 25 Apr 2024 14:44:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 19B93C0003C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1714081483; bh=bh0Gh/pQHLvaTDCe1mGlX2hRI+Z5t3HiiUgGmfeGYOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=emc2KvjJesvvkf/wXqc/g2BFz47SK2fhKNpVUgwj2oaa9UhaAoIbNc5TMFLtKzafW DIQg2Mvzb5uUpmHLP3dd7amPFTy8JunbkOjbJAig24iS7/tPI8u+Rb5qfbduBq0cZ6 43tVzwTTfmD8FtrbYczapRn1A/pKLeCDpdZgV2sg= 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 1226418041CAC7; Thu, 25 Apr 2024 14:44:41 -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 v3 5/5] net: txgbe: Utilize i2c-designware.h Date: Thu, 25 Apr 2024 14:44:38 -0700 Message-Id: <20240425214438.2100534-6-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240425214438.2100534-1-florian.fainelli@broadcom.com> References: <20240425214438.2100534-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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c index 93295916b1d2..01a442c38248 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c @@ -13,6 +13,8 @@ #include #include +#include + #include "../libwx/wx_type.h" #include "../libwx/wx_lib.h" #include "../libwx/wx_hw.h" @@ -571,7 +573,7 @@ static int txgbe_clock_register(struct txgbe *txgbe) char clk_name[32]; struct clk *clk; - snprintf(clk_name, sizeof(clk_name), "i2c_designware.%d", + snprintf(clk_name, sizeof(clk_name), I2C_DESIGNWARE_NAME ".%d", pci_dev_id(pdev)); clk = clk_register_fixed_rate(NULL, clk_name, NULL, 0, 156250000); @@ -634,7 +636,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