linux-stable/drivers/net/dsa/sja1105
Christophe JAILLET c120209bce net: dsa: sja1105: Fix parameters order in sja1110_pcs_mdio_write_c45()
The definition and declaration of sja1110_pcs_mdio_write_c45() don't have
parameters in the same order.

Knowing that sja1110_pcs_mdio_write_c45() is used as a function pointer
in 'sja1105_info' structure with .pcs_mdio_write_c45, and that we have:

   int (*pcs_mdio_write_c45)(struct mii_bus *bus, int phy, int mmd,
				  int reg, u16 val);

it is likely that the definition is the one to change.

Found with cppcheck, funcArgOrderDifferent.

Fixes: ae271547bb ("net: dsa: sja1105: C45 only transactions for PCS")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/ff2a5af67361988b3581831f7bd1eddebfb4c48f.1712082763.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-04-04 12:51:45 +02:00
..
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: dsa: sja1105: register the MDIO buses for 100base-T1 and 100base-TX 2021-06-08 14:37:16 -07:00
sja1105.h net: dsa: sja1105: serialize sja1105_port_mcast_flood() with other FDB accesses 2023-09-11 08:32:30 +01:00
sja1105_clocking.c net: dsa: sja1105: make read-only const arrays static 2023-09-21 16:12:12 +02:00
sja1105_devlink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-12-08 18:19:59 -08:00
sja1105_dynamic_config.c net: dsa: sja1105: fix multicast forwarding working only for last added mdb entry 2023-09-11 08:32:30 +01:00
sja1105_dynamic_config.h net: dsa: sja1105: add support for the SJA1110 switch family 2021-06-08 14:37:16 -07:00
sja1105_ethtool.c net: dsa: sja1105: don't use burst SPI reads for port statistics 2021-05-21 14:01:41 -07:00
sja1105_flower.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
sja1105_main.c net: dsa: sja1105: Use units.h instead of the copy of a definition 2023-11-29 20:12:17 -08:00
sja1105_mdio.c net: dsa: sja1105: Fix parameters order in sja1110_pcs_mdio_write_c45() 2024-04-04 12:51:45 +02:00
sja1105_ptp.c net: dsa: sja1105: always enable the send_meta options 2023-07-04 19:42:27 +01:00
sja1105_ptp.h Revert "net: dsa: move sja1110_process_meta_tstamp inside the tagging protocol driver" 2021-12-12 12:51:34 +00:00
sja1105_spi.c net: dsa: sja1105: complete tc-cbs offload support on SJA1110 2023-09-06 06:23:05 +01:00
sja1105_static_config.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
sja1105_static_config.h net: update NXP copyright text 2021-09-17 13:52:17 +01:00
sja1105_tas.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
sja1105_tas.h net: dsa: sja1105: dimension the data structures for a larger port count 2021-05-24 13:59:03 -07:00
sja1105_vl.c net: dsa: tag_8021q: rename dsa_8021q_bridge_tx_fwd_offload_vid 2022-02-27 11:06:14 +00:00
sja1105_vl.h net: update NXP copyright text 2021-09-17 13:52:17 +01:00