Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp509576pxf; Wed, 31 Mar 2021 08:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwheY5bEgKsaLthnzCXDbAqWmYkbDRrpyPSusOtdN55Non0X8WZD9+wl6sV1FeX40BvXGIN X-Received: by 2002:aa7:c503:: with SMTP id o3mr4519184edq.224.1617205847037; Wed, 31 Mar 2021 08:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617205847; cv=none; d=google.com; s=arc-20160816; b=eZ/bVtltvWsSO2h/ZXkiH/gxfiuGmqMRHcMYCNIEvgrwcxlJ+5q3pzgCdzT3TsaIYb TovU22qVGNYW4u/8mTOvJkHtlHRqKwhBroz/YB2+katTvMsvXWJwkQR1G+UmrDgPafDq oSiHZ+oapoWnSWO2bjhwJYsmDObH0tBdFSf1fi8Ozmy/qxfkPxaRdyHsoPg69LpycxGi 7woF/2Ydzhl2S6B/m7z+u0EZTTR4dUFjEXQG/SUtlNBe4CJO8xr6EiBt65Sv9w2Wh/T+ v4RlJqEwQVr+oqIdWR4T7KkVOiQ7s6By7/yFlnU1G+GQKvKRybAe2TsD36vTjX24qC/t Bs1w== 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 :ironport-sdr:ironport-sdr; bh=tZHBgs7SwEnc8jO1KcPrp3wohaMYWdQR5RZFZVXnLhQ=; b=dJEzl+KnRLxh9efkbwDwdmqacDwxE+qCDhOOADLc54GPptnLpqTJQyG5ayoMwZhNzg 0d7uaJOGoQlMALVJq4N88YoXq+A2qm3WGULaaIp4idMu2mU4fJKNyVVdOblRmQ/Qlrgh DYtZtoWMWvEKHazcGuQuPNDyaH+UrPv0v6sYhHWrM5NMQeCj9qe6pBhkYPA89zMxRJZj Z3Q/PUpxW7Ejc9orQuZNETRKzNOVePnM/tOak8uLUMOpFtwQmgUNH0pVaL4zBcRE2ox/ fqrZ28pEg6GHSIYwtQOdmbv8jSIajjKGjqQlPZrP1RvrvA3BklmC4TF6qmWYtgeqrKWJ pXSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si1863418eju.469.2021.03.31.08.50.20; Wed, 31 Mar 2021 08:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235610AbhCaPtW (ORCPT + 99 others); Wed, 31 Mar 2021 11:49:22 -0400 Received: from mga14.intel.com ([192.55.52.115]:27968 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235355AbhCaPsu (ORCPT ); Wed, 31 Mar 2021 11:48:50 -0400 IronPort-SDR: 2x+20VHbG7PjJWXFCimfLFt4XrHj36Qgu+k0xT9HGkgimTo3SHQT8bpQVNuo+H/kQ7+7R2NpRK WfYsCDJOuB5Q== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="191514143" X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="191514143" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2021 08:48:50 -0700 IronPort-SDR: lC9xrEGgDPF7L8GrKDfnlXdvRa8rTfeFu+gfW8Dn8Mn1QLa3A8LsVmXS04cA4l2DIHt8a210cH kq0jC3RezlJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="438856957" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 31 Mar 2021 08:48:48 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6C09D269; Wed, 31 Mar 2021 18:49:03 +0300 (EEST) From: Andy Shevchenko To: Wolfram Sang , Andy Shevchenko , Serge Semin , Lee Jones , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Jarkko Nikula , Mika Westerberg Subject: [PATCH v1 2/2] i2c: designware: Get rid of legacy platform data Date: Wed, 31 Mar 2021 18:48:51 +0300 Message-Id: <20210331154851.8456-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210331154851.8456-1-andriy.shevchenko@linux.intel.com> References: <20210331154851.8456-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Platform data is a legacy interface to supply device properties to the driver. In this case we don't have anymore in-kernel users for it. Just remove it for good. Signed-off-by: Andy Shevchenko --- drivers/i2c/busses/i2c-designware-platdrv.c | 7 +------ include/linux/platform_data/i2c-designware.h | 13 ------------- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 include/linux/platform_data/i2c-designware.h diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 0dfeb2d11603..4b37f28ec0c6 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -206,7 +205,6 @@ static const struct dmi_system_id dw_i2c_hwmon_class_dmi[] = { static int dw_i2c_plat_probe(struct platform_device *pdev) { - struct dw_i2c_platform_data *pdata = dev_get_platdata(&pdev->dev); struct i2c_adapter *adap; struct dw_i2c_dev *dev; struct i2c_timings *t; @@ -236,10 +234,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev) reset_control_deassert(dev->rst); t = &dev->timings; - if (pdata) - t->bus_freq_hz = pdata->i2c_scl_freq; - else - i2c_parse_fw_timings(&pdev->dev, t, false); + i2c_parse_fw_timings(&pdev->dev, t, false); i2c_dw_adjust_bus_speed(dev); diff --git a/include/linux/platform_data/i2c-designware.h b/include/linux/platform_data/i2c-designware.h deleted file mode 100644 index 014c4a5a7e13..000000000000 --- a/include/linux/platform_data/i2c-designware.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright(c) 2014 Intel Corporation. - */ - -#ifndef I2C_DESIGNWARE_H -#define I2C_DESIGNWARE_H - -struct dw_i2c_platform_data { - unsigned int i2c_scl_freq; -}; - -#endif -- 2.30.2