Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp102089lqd; Tue, 23 Apr 2024 16:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtqBFYAn7+Av1LPTD0fn9YI5b6p/dNsP7qXLJdWXCxp8f1bj9YlpOTRx9Mnd8bQ1t4k9iObivXW84pU0hjbuW2sFRhvl2biuFEwOZ0Qg== X-Google-Smtp-Source: AGHT+IFfgiqG6Snp94CREnZcMAKuVZ45xsNwgvBGXenuDcbkwxhOKav1J6ktm3viYFtpeXalSm3s X-Received: by 2002:a0c:fecc:0:b0:6a0:5baa:1103 with SMTP id z12-20020a0cfecc000000b006a05baa1103mr885424qvs.39.1713915437598; Tue, 23 Apr 2024 16:37:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713915437; cv=pass; d=google.com; s=arc-20160816; b=MlkYxQN5x1jpIFcIgUwNu0dUoOtxEVstJ426iFaWF7XgWkCJNKyx4fmFvCeQiivbtq dWhx99GytrXKvHl443Lh90dd0dCYxBTT38KxmRqvDqnhPXPhxzDP2Z7RFoPd9dlAZQIf ZdgE+mgtFLave2QIbtvVDZT1bojLF4aRGLqAlPqX4fAdmCdhj3Dgi2AC768TU/claUQQ /SpXu+rI0LPy9ih9YoDbkMPrhX0muK9mvtvW5FBhJ0MLRkWe2P1piFnNFjq4ecfxF3Hy oRpyRcMUWXhU7pasArJ7kQzGcwXp9SQugFIQcH8jkDhtUsRYP5ieUhLoKWRVfu4MRyRz /EZA== 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=5aRktfwE9RVwxXp7sgNxL8dqNqcaF+bRY28LPxjUk5Q=; fh=cpD+ehYTg5Kkp9rm1NbzIZqwMaDwDybTA/27fbyX18M=; b=XlhRdyVTceb1yl2JovNten0XUFg9flRy35ZkA9BwYrSzCsdS2STLt/c0GnLme4YGQ8 vX5xNrk6F7ut80+Vf+5GHJzLC3yELe3FMmYzTsPcN9YIQpRal77scMZvaaLPa4dLezko ypnifktOY4zWp6mKXkEk4otmXarff4S/pyN8Sbqustd5n0UYMPdYW07yFfqjYE8CUBpm 5icaM9IrkCQOYISchDkqZA3TEKwwetj5HqoggDdidn/612zfP+OVl2JMXYgCm4xpt7jt dB5z0gm//jh70n7kRMG/RS0LkLNswIg2bXYJ7cHpB4hG2gO8+SgHZmB8Yqh9Nmz+CUhz UiWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b="G/2qjj1x"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-156020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156020-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 1-20020a0562140dc100b006a0859a20fdsi4479950qvt.187.2024.04.23.16.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 16:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156020-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="G/2qjj1x"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-156020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156020-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 175B11C22C91 for ; Tue, 23 Apr 2024 23:37:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C37315465D; Tue, 23 Apr 2024 23:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="G/2qjj1x" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.207]) (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 A219951C5B; Tue, 23 Apr 2024 23:36:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713915397; cv=none; b=i6O0wTXxQsHtn7ZY3Q9+w9qC9yFmWgrYiwxKe5xCuTV/mOVwW2BXsifZQXuAhQ4UGsKDc3MA/J9z82f/21Epfj5cHZZZ6Jq+dJKaAyIl2Am3GfWcOaPDTHpkOBttZ9VbsouMtIZ2h0yTav16w+OnMx2HCwj4rsavGIzGIqsZVQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713915397; c=relaxed/simple; bh=BlNAiO3Ob0kPQCj0nwB1iVkt/SR7XQ1oeTzzc6te+Jw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F8bebNwZ1ARRQICxp+OHD+BUMldMEam1yIBfgMKmCW+TO88CySrSKH/+Lb1AFE+u+oQ8gr79YgUHeJ1TR850EpgSpjie40Wbkp3dt5nrcCL5oyD4WdWcqF8OarO1hu++W/WJ8XvSYRLnu/SWPsBntgT0KEwTFYHMQzeVocWLVyY= 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=G/2qjj1x; arc=none smtp.client-ip=192.19.144.207 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 8DED3C003ADC; Tue, 23 Apr 2024 16:36:29 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 8DED3C003ADC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1713915389; bh=BlNAiO3Ob0kPQCj0nwB1iVkt/SR7XQ1oeTzzc6te+Jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G/2qjj1xFe9BxMR83H9lupqaxOc4Iw4cALvbo5/BiPK/u0oKGo1TJCJswOEYZJng+ yghN+KTkfj2IV2+3mlR47EnpZRm+tgYvmUT9ykPaYENar1b3YtLjNMobLFLA5ugSyC CnchbDAGyx3Ds3Cy7WvwULLpCuVxD8cICkLYtv2M= 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 8B92018041CAC4; Tue, 23 Apr 2024 16:36:27 -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 3/4] mfd: intel_quark_i2c_gpio: Utilize i2c-designware.h Date: Tue, 23 Apr 2024 16:36:21 -0700 Message-Id: <20240423233622.1494708-4-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423233622.1494708-1-florian.fainelli@broadcom.com> References: <20240423233622.1494708-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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c index 9b9c76bd067b..5ddc9a57ca73 100644 --- a/drivers/mfd/intel_quark_i2c_gpio.c +++ b/drivers/mfd/intel_quark_i2c_gpio.c @@ -17,6 +17,7 @@ #include #include #include +#include #include /* PCI BAR for register base address */ @@ -30,7 +31,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 +137,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