Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1403009lqd; Thu, 25 Apr 2024 14:45:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5iJ8+rx8qXVlThRZu3UdglrCat/NMBPnj6yfl/0TO9v3r2bWaIlxUZauCC3jTDn4EyHer7CfVAcnbD6q97pf2kDu2t7DWSdqEGH8dvg== X-Google-Smtp-Source: AGHT+IEnNuxUUrEvGX4dDmuce/6br/Qmt+vqgZR3QZycOqN6m8zUZFoC79B4I9GmLWdNJodvnPki X-Received: by 2002:a05:622a:88:b0:43a:5f4e:61fd with SMTP id o8-20020a05622a008800b0043a5f4e61fdmr945695qtw.13.1714081532415; Thu, 25 Apr 2024 14:45:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714081532; cv=pass; d=google.com; s=arc-20160816; b=fkYmpGTbiimxG3O0QSOLQ0HK6lMhfidgeC38zsN9Oe83LECI9dZEJevTr4P+BK5+qQ arbCRUDeEtTfo9+ZcTn4VRUFnJUQXIunaO8PXjD4yBJlL887qWbJXjch8k1JtYTv/Pxk f0oa4y6ls+FGOo/DjelQMAf/Khj1bCk5VJielJCNai6FRXkfTkrvmZvEwlH5ctJSHiNu iNb26d1NfR29VkOEgxD3Rpwv5kqy1Yr1zdHzF6osJmu4oLZBkXi688aEK1iEKZbHxslr aVVvogpapmsz5smO0w/m0dOVMW9dOTordOn1Acu6MKZ/HekINxBJjwjG0rr1aGu60aLi uYDA== 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=mHu23fNUgyncoMoTfyqO9uwrRTCIRhISsZHgl2X9GIA=; fh=cpD+ehYTg5Kkp9rm1NbzIZqwMaDwDybTA/27fbyX18M=; b=NNf7F79ZXpm/Pm7npPwho7QRbuQQ3s967jcHrS7n3MeKPVPRhwjMDzHvS07Wlq9OCQ MoXouhqxT5Tn0Xv+bkq7v9jkrBzFTFyR09qW0BgrGlwAybHfw9Yrp/ki86fRAVzi71GT RQuiimhkdAgcFV4Q9jQDL9iph5rrMG16VmkhEgTOx8YI/9gwdJGpP00roJgcESByFElZ cUholq0GGkRhGTqrXyKyVNDQRS5FCV7GH3TUwGdrBBbj4piH+RuW1JC++eGYIce+Ci0x ExqUr1aNA9vaTScoqszDbmEJHzwh9KU8G9ODXRCDuna+ezL/mu6n5ze3oduPbghxfVko IwdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=PzZbIkb3; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-159235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fj25-20020a05622a551900b00439e7c3c6b0si9916541qtb.802.2024.04.25.14.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 14:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=PzZbIkb3; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-159235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159235-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 23E081C22DCE for ; Thu, 25 Apr 2024 21:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95EBB15687B; Thu, 25 Apr 2024 21:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="PzZbIkb3" 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 5EA6515573A; 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=1714081485; cv=none; b=D8VdTvyG3tqlGVz34h50SVjJ6JdGBwdeR8gOUF/milbjNCfN/ugpZpJZxAfE+HGYOe+RK2J+aDqFuJXe9Sf6sD42PETls4QOY/gIuJIb2VkR/Y4mKnBhixm0hUPutj2ePYZ0cXq7y826sj6jilguzFRKQWCo9HL4WHCM16RK+GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081485; c=relaxed/simple; bh=thjt11Q2mq8PIMSTXSWsp2Op1jKN73Dixr5yJcrrc/w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SRQeThMMIRv/VJJXKe9QGQRX6AhfX4+hbZ6Co7wqrC2STmLG/Ks5PH8FgyW36TANiMDmadc3jC0efo8yCNWcgGr92Rr1fTi2Bomd++pxjbzbQKk4pHXVu5fNiOZjrUGKpE9e5SXazYvLTT8xHvzcMNFSSjlpsh99uanMMU+P5g8= 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=PzZbIkb3; 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 1C34BC0003CF; Thu, 25 Apr 2024 14:44:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 1C34BC0003CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1714081483; bh=thjt11Q2mq8PIMSTXSWsp2Op1jKN73Dixr5yJcrrc/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PzZbIkb3/uddE859zhNN5Fx4hZRfqFXfc+fRmkwuom7Ypa4RCDw7bZfBvfFH1t04s t9TLFuVLnMzE0iHsAe+tqQg5UavqwXab1GRdJksZRvtNXRLTUxvxUvrLtg+IirUkOD fjOoBWXYuCUbY14TsTvQtpbgDqyNpkLo2RDqzSEQ= 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 C9F5318041CAC6; Thu, 25 Apr 2024 14:44:40 -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 4/5] mfd: intel_quark_i2c_gpio: Utilize i2c-designware.h Date: Thu, 25 Apr 2024 14:44:37 -0700 Message-Id: <20240425214438.2100534-5-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/mfd/intel_quark_i2c_gpio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c index 9b9c76bd067b..86620de5c9ba 100644 --- a/drivers/mfd/intel_quark_i2c_gpio.c +++ b/drivers/mfd/intel_quark_i2c_gpio.c @@ -19,6 +19,8 @@ #include #include +#include + /* PCI BAR for register base address */ #define MFD_I2C_BAR 0 #define MFD_GPIO_BAR 1 @@ -30,7 +32,7 @@ #define INTEL_QUARK_IORES_MEM 0 #define INTEL_QUARK_IORES_IRQ 1 -#define INTEL_QUARK_I2C_CONTROLLER_CLK "i2c_designware.0" +#define INTEL_QUARK_I2C_CONTROLLER_CLK I2C_DESIGNWARE_NAME ".0" /* The Quark I2C controller source clock */ #define INTEL_QUARK_I2C_CLK_HZ 33000000 @@ -136,7 +138,7 @@ static const struct software_node *intel_quark_gpio_node_group[] = { static struct mfd_cell intel_quark_mfd_cells[] = { [MFD_I2C_BAR] = { .id = MFD_I2C_BAR, - .name = "i2c_designware", + .name = I2C_DESIGNWARE_NAME, .acpi_match = &intel_quark_acpi_match_i2c, .num_resources = ARRAY_SIZE(intel_quark_i2c_res), .resources = intel_quark_i2c_res, -- 2.34.1