Commit 5a517b5b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones
Browse files

i2c: designware: Get rid of legacy platform data

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: default avatarAndy Shevchenko <>
Acked-by: default avatarWolfram Sang <>
Acked-by: default avatarJarkko Nikula <>
Signed-off-by: default avatarLee Jones <>
parent c58ddd29
......@@ -22,7 +22,6 @@
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_data/i2c-designware.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
......@@ -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)
t = &dev->timings;
if (pdata)
t->bus_freq_hz = pdata->i2c_scl_freq;
i2c_parse_fw_timings(&pdev->dev, t, false);
i2c_parse_fw_timings(&pdev->dev, t, false);
/* SPDX-License-Identifier: GPL-2.0-only */
* Copyright(c) 2014 Intel Corporation.
struct dw_i2c_platform_data {
unsigned int i2c_scl_freq;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment