Skip to content

Commit aa16e1f

Browse files
arinc9davem330
authored andcommitted
net: dsa: mt7530: get rid of mac_port_validate member of mt753x_info
The mac_port_validate member of the mt753x_info structure is not being used, remove it. Improve the member description section in the process. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 99acfa8 commit aa16e1f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

drivers/net/dsa/mt7530.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -743,15 +743,14 @@ struct mt753x_pcs {
743743

744744
/* struct mt753x_info - This is the main data structure for holding the specific
745745
* part for each supported device
746+
* @id: Holding the identifier to a switch model
747+
* @pcs_ops: Holding the pointer to the MAC PCS operations structure
746748
* @sw_setup: Holding the handler to a device initialization
747749
* @phy_read_c22: Holding the way reading PHY port using C22
748750
* @phy_write_c22: Holding the way writing PHY port using C22
749751
* @phy_read_c45: Holding the way reading PHY port using C45
750752
* @phy_write_c45: Holding the way writing PHY port using C45
751-
* @phy_mode_supported: Check if the PHY type is being supported on a certain
752-
* port
753-
* @mac_port_validate: Holding the way to set addition validate type for a
754-
* certan MAC port
753+
* @mac_port_get_caps: Holding the handler that provides MAC capabilities
755754
* @mac_port_config: Holding the way setting up the PHY attribute to a
756755
* certain MAC port
757756
*/
@@ -770,9 +769,6 @@ struct mt753x_info {
770769
int regnum, u16 val);
771770
void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
772771
struct phylink_config *config);
773-
void (*mac_port_validate)(struct dsa_switch *ds, int port,
774-
phy_interface_t interface,
775-
unsigned long *supported);
776772
void (*mac_port_config)(struct dsa_switch *ds, int port,
777773
unsigned int mode,
778774
phy_interface_t interface);

0 commit comments

Comments
 (0)