linux_dsm_epyc7002/drivers/net/ethernet/ti
Andrew Lunn 0c65b2b90d net: of_get_phy_mode: Change API to solve int/unit warnings
Before this change of_get_phy_mode() returned an enum,
phy_interface_t. On error, -ENODEV etc, is returned. If the result of
the function is stored in a variable of type phy_interface_t, and the
compiler has decided to represent this as an unsigned int, comparision
with -ENODEV etc, is a signed vs unsigned comparision.

Fix this problem by changing the API. Make the function return an
error, or 0 on success, and pass a pointer, of type phy_interface_t,
where the phy mode should be stored.

v2:
Return with *interface set to PHY_INTERFACE_MODE_NA on error.
Add error checks to all users of of_get_phy_mode()
Fixup a few reverse christmas tree errors
Fixup a few slightly malformed reverse christmas trees

v3:
Fix 0-day reported errors.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-04 11:21:25 -08:00
..
cpmac.c net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
cpsw_ale.c net: ethernet: ti: ale: do not auto delete mcast super entries 2019-04-27 17:11:49 -04:00
cpsw_ale.h net: ethernet: ti: cpsw: fix allmulti cfg in dual_mac mode 2019-04-27 17:11:49 -04:00
cpsw_ethtool.c net: ethernet: ti: cpsw: add XDP support 2019-07-08 14:58:04 -07:00
cpsw_priv.c net: ethernet: ti: cpsw: switch to use mac sl api 2019-04-27 17:11:49 -04:00
cpsw_priv.h net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
cpsw_sl.c net: ethernet: ti: cpsw: introduce mac sl module api 2019-04-27 17:11:49 -04:00
cpsw_sl.h net: ethernet: ti: cpsw: introduce mac sl module api 2019-04-27 17:11:49 -04:00
cpsw-common.c net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
cpsw-phy-sel.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
cpsw.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
cpsw.h net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
cpts.c net: ethernet: ti: cpts: add support for ext rftclk selection 2019-06-09 12:53:06 -07:00
cpts.h net: ethernet: ti: cpts: add support for ext rftclk selection 2019-06-09 12:53:06 -07:00
davinci_cpdma.c davinci_cpdma: make cpdma_chan_split_pool static 2019-10-15 20:56:14 -07:00
davinci_cpdma.h net: ethernet: ti: davinci_cpdma: allow desc split while down 2019-07-08 14:58:04 -07:00
davinci_emac.c Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
davinci_mdio.c drivers: net: davinci_mdio: fix return value check in davinci_mdio_probe() 2019-05-05 10:17:28 -07:00
Kconfig net: ethernet: ti: cpsw: add XDP support 2019-07-08 14:58:04 -07:00
Makefile net: ethernet: ti: netcp_ethss: fix build 2019-05-13 09:56:05 -07:00
netcp_core.c net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
netcp_ethss.c net: of_get_phy_mode: Change API to solve int/unit warnings 2019-11-04 11:21:25 -08:00
netcp_sgmii.c net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
netcp_xgbepcsr.c net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
netcp.h net: ethernet: ti: convert to SPDX license identifiers 2019-04-27 17:11:48 -04:00
tlan.c ethernet: remove redundant memset 2019-07-15 11:06:27 -07:00
tlan.h