Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-mdio-gpio-remove-unneeded-headers'

Bartosz Golaszewski says:

====================
net: mdio-gpio: remove unneeded headers

This removes linux/mdio-gpio.h and linux/platform_data/mdio-gpio.h as
they are not needed due to the symbols either being used by the
mdio-gpio module alone or not used at all.
====================

Link: https://patch.msgid.link/20260316-gpio-mdio-hdr-cleanup-v1-0-2df696f74728@oss.qualcomm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+4 -32
-1
MAINTAINERS
··· 9547 9547 F: include/linux/phy_link_topology.h 9548 9548 F: include/linux/phylib_stubs.h 9549 9549 F: include/linux/platform_data/mdio-bcm-unimac.h 9550 - F: include/linux/platform_data/mdio-gpio.h 9551 9550 F: include/net/phy/ 9552 9551 F: include/trace/events/mdio.h 9553 9552 F: include/uapi/linux/mdio.h
+4 -8
drivers/net/mdio/mdio-gpio.c
··· 20 20 #include <linux/gpio/consumer.h> 21 21 #include <linux/interrupt.h> 22 22 #include <linux/mdio-bitbang.h> 23 - #include <linux/mdio-gpio.h> 24 23 #include <linux/module.h> 25 24 #include <linux/of_mdio.h> 26 - #include <linux/platform_data/mdio-gpio.h> 27 25 #include <linux/platform_device.h> 28 26 #include <linux/slab.h> 27 + 28 + #define MDIO_GPIO_MDC 0 29 + #define MDIO_GPIO_MDIO 1 30 + #define MDIO_GPIO_MDO 2 29 31 30 32 struct mdio_gpio_info { 31 33 struct mdiobb_ctrl ctrl; ··· 112 110 struct mdio_gpio_info *bitbang, 113 111 int bus_id) 114 112 { 115 - struct mdio_gpio_platform_data *pdata = dev_get_platdata(dev); 116 113 struct mii_bus *new_bus; 117 114 118 115 bitbang->ctrl.ops = &mdio_gpio_ops; ··· 127 126 snprintf(new_bus->id, sizeof(new_bus->id), "gpio-%x", bus_id); 128 127 else 129 128 strscpy(new_bus->id, "gpio", sizeof(new_bus->id)); 130 - 131 - if (pdata) { 132 - new_bus->phy_mask = pdata->phy_mask; 133 - new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask; 134 - } 135 129 136 130 if (device_is_compatible(dev, "microchip,mdio-smi0")) { 137 131 bitbang->ctrl.op_c22_read = 0;
-9
include/linux/mdio-gpio.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef __LINUX_MDIO_GPIO_H 3 - #define __LINUX_MDIO_GPIO_H 4 - 5 - #define MDIO_GPIO_MDC 0 6 - #define MDIO_GPIO_MDIO 1 7 - #define MDIO_GPIO_MDO 2 8 - 9 - #endif
-14
include/linux/platform_data/mdio-gpio.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* 3 - * MDIO-GPIO bus platform data structure 4 - */ 5 - 6 - #ifndef __LINUX_MDIO_GPIO_PDATA_H 7 - #define __LINUX_MDIO_GPIO_PDATA_H 8 - 9 - struct mdio_gpio_platform_data { 10 - u32 phy_mask; 11 - u32 phy_ignore_ta_mask; 12 - }; 13 - 14 - #endif /* __LINUX_MDIO_GPIO_PDATA_H */