Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2270717rdb; Mon, 20 Nov 2023 06:50:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFeiSTdZ7jZat0Ibd9lZhRRUT6reV2YrZ0an83ukfPASCCHO3lTlbVbSrOWvIQURQKhhzQ X-Received: by 2002:a17:902:d885:b0:1ce:5bb1:4e19 with SMTP id b5-20020a170902d88500b001ce5bb14e19mr4953294plz.66.1700491820330; Mon, 20 Nov 2023 06:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700491820; cv=none; d=google.com; s=arc-20160816; b=ncTDwgDfcpZc0I7fMEKs79/hBPDXBPKfkSyJtISyc/wv1ivT9tFQ7XZ1rjc9kv5Lo9 wHsP3pGQ/TVRjkBaHAetXoJyScIE4Z+AHb2Lm8nOwte7SBQgedFPfT5ulLg4+9/UfODG GtQvPgtOqk02w+Sd7Y9zv5aTgbGV6UxUr2vFkVI0nwkC68AYVaAz3S6qUdaxIRbWuwhE bvC9aSqDSVuHHyIwcTkvhVaz1sygrd70Ty7ILfa1QwXS8LB4LFvUDpPgVt0iz1mFdfEM Ob42ZXL+2drbi0FylKzQisQyzeqYRKSY912auKdGZ6IHKgrFYVVcq24EybaC3jqmDCYW VMhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S7FxgcdR2bVsmhvhBFVmu5Ouhv+rKW3TzB5Tu+dfPX0=; fh=g3amdiifXhwL/mTWljo4oOX/iLvH3RCBC8SWsJqOWek=; b=LIyEnIUjO2Trw5XqVs/4jq8s6+rBpAhuCzAuWsc2PjhYyh8uN82XkxoS98YIPkjIn1 od5/AFoJ78hzsWcUUIAURNsc5VYzR16NGq3Du9XCC6YjTJm7MNvKJFVwLcEBjWArgb5C u5oIzPBoQyre0/vtlZSaKFGdxFQcEADrWwGYj4RmJZ5MR/s/vfNJvRHbE2Y0siBok33D OCPVXutwj1cq+BmXepPZQ9FVLA3iJN5ejguLHBJ9+eZ4aehRYaN8K3V2xV1A80nsU1Yc m3Qlax51aM6/QW9jZbQouRYU/iqDjMaNR1idZAW8EgWiWSSQGYy2h/22HTrkHnxjhDSV eeVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OneQezRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bc1-20020a170902930100b001beef8ccd05si7808084plb.489.2023.11.20.06.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:50:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OneQezRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 51A758025D03; Mon, 20 Nov 2023 06:48:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234101AbjKTOrz (ORCPT + 99 others); Mon, 20 Nov 2023 09:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233806AbjKTOrI (ORCPT ); Mon, 20 Nov 2023 09:47:08 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A877DD65; Mon, 20 Nov 2023 06:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700491619; x=1732027619; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MsQEfbBN1HcZU/6xkH82vQLZL3LbP0Qpqn2wuJGDYp4=; b=OneQezRPT98pCnqSvPkyy+rHDmgmuQpT573unsufq2GiQa1Rs0DQpHpr JRJV/3rgRH3w9iugL0Lf6zflNFk+Kckyzs+Dy/XVksM0Bz3s/Lj7hyahG 88z4H1vGhPSvG368fyrUm5Ev5JaEw2X3CViMN41TMLbF25VOXC02m/BP6 +m4lAhYdt62zpGO1GP+WVR8DmimykVQEgFl92n4UuV8nyvPUfaal+UtD/ qmXXannqUfX7AaEyKBe9n8khq88zSiGsE/p2wXa6Y/MDBXZBSpTU7OJfh JMMlMQO82+ACpUzuuJ7qFWwgYYxvvK3M5jXxVUfPk4PpwiEB4t9XLRovH Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455956504" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455956504" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 06:46:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801193203" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="801193203" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 20 Nov 2023 06:46:53 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id BA2B3376; Mon, 20 Nov 2023 16:46:44 +0200 (EET) From: Andy Shevchenko To: Mario Limonciello , Jarkko Nikula , Herbert Xu , Andy Shevchenko , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Jan Dabros , Andi Shyti , Philipp Zabel Subject: [PATCH v4 13/24] i2c: designware: Rename dw_i2c_of_configure() -> i2c_dw_of_configure() Date: Mon, 20 Nov 2023 16:41:55 +0200 Message-ID: <20231120144641.1660574-14-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> References: <20231120144641.1660574-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 06:48:11 -0800 (PST) For the sake of consistency, rename dw_i2c_of_configure() and change its parameter to be aligned with the i2c_dw_acpi_configure(). Reviewed-by: Andi Shyti Reviewed-by: Mario Limonciello Acked-by: Jarkko Nikula Signed-off-by: Andy Shevchenko --- drivers/i2c/busses/i2c-designware-platdrv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 7449f1b37ecf..b8606b651feb 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -110,9 +110,10 @@ static int mscc_twi_set_sda_hold_time(struct dw_i2c_dev *dev) return 0; } -static void dw_i2c_of_configure(struct platform_device *pdev) +static void i2c_dw_of_configure(struct device *device) { - struct dw_i2c_dev *dev = platform_get_drvdata(pdev); + struct platform_device *pdev = to_platform_device(device); + struct dw_i2c_dev *dev = dev_get_drvdata(device); switch (dev->flags & MODEL_MASK) { case MODEL_MSCC_OCELOT: @@ -130,7 +131,7 @@ static int bt1_i2c_request_regs(struct dw_i2c_dev *dev) return -ENODEV; } -static inline void dw_i2c_of_configure(struct platform_device *pdev) +static inline void i2c_dw_of_configure(struct device *device) { } #endif @@ -306,7 +307,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev) i2c_dw_adjust_bus_speed(dev); if (pdev->dev.of_node) - dw_i2c_of_configure(pdev); + i2c_dw_of_configure(&pdev->dev); if (has_acpi_companion(&pdev->dev)) i2c_dw_acpi_configure(&pdev->dev); -- 2.43.0.rc1.1.gbec44491f096