mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
net: mdio-gpio: remove linux/platform_data/mdio-gpio.h
Nobody defines struct mdio_gpio_platform_data. Remove platform data support from mdio-gpio and drop the header. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Link: https://patch.msgid.link/20260316-gpio-mdio-hdr-cleanup-v1-2-2df696f74728@oss.qualcomm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
9c6b4009da
commit
356d4fbcf3
@@ -9547,7 +9547,6 @@ F: include/linux/phy_fixed.h
|
||||
F: include/linux/phy_link_topology.h
|
||||
F: include/linux/phylib_stubs.h
|
||||
F: include/linux/platform_data/mdio-bcm-unimac.h
|
||||
F: include/linux/platform_data/mdio-gpio.h
|
||||
F: include/net/phy/
|
||||
F: include/trace/events/mdio.h
|
||||
F: include/uapi/linux/mdio.h
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <linux/mdio-bitbang.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of_mdio.h>
|
||||
#include <linux/platform_data/mdio-gpio.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
@@ -113,7 +112,6 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
|
||||
struct mdio_gpio_info *bitbang,
|
||||
int bus_id)
|
||||
{
|
||||
struct mdio_gpio_platform_data *pdata = dev_get_platdata(dev);
|
||||
struct mii_bus *new_bus;
|
||||
|
||||
bitbang->ctrl.ops = &mdio_gpio_ops;
|
||||
@@ -130,11 +128,6 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
|
||||
else
|
||||
strscpy(new_bus->id, "gpio", sizeof(new_bus->id));
|
||||
|
||||
if (pdata) {
|
||||
new_bus->phy_mask = pdata->phy_mask;
|
||||
new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask;
|
||||
}
|
||||
|
||||
if (device_is_compatible(dev, "microchip,mdio-smi0")) {
|
||||
bitbang->ctrl.op_c22_read = 0;
|
||||
bitbang->ctrl.op_c22_write = 0;
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* MDIO-GPIO bus platform data structure
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_MDIO_GPIO_PDATA_H
|
||||
#define __LINUX_MDIO_GPIO_PDATA_H
|
||||
|
||||
struct mdio_gpio_platform_data {
|
||||
u32 phy_mask;
|
||||
u32 phy_ignore_ta_mask;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_MDIO_GPIO_PDATA_H */
|
||||
Reference in New Issue
Block a user