mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-23 00:22:56 -05:00
net: stmmac: replace the has_sun8i field with a flag
Drop the boolean field of the plat_stmmacenet_data structure in favor of a simple bitfield flag. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Link: https://lore.kernel.org/r/20230710090001.303225-5-brgl@bgdev.pl Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
fd1d62d80e
commit
d8daff284e
@@ -207,6 +207,7 @@ struct dwmac4_addrs {
|
||||
#define STMMAC_FLAG_HAS_INTEGRATED_PCS BIT(0)
|
||||
#define STMMAC_FLAG_SPH_DISABLE BIT(1)
|
||||
#define STMMAC_FLAG_USE_PHY_WOL BIT(2)
|
||||
#define STMMAC_FLAG_HAS_SUN8I BIT(3)
|
||||
|
||||
struct plat_stmmacenet_data {
|
||||
int bus_id;
|
||||
@@ -270,7 +271,6 @@ struct plat_stmmacenet_data {
|
||||
struct reset_control *stmmac_ahb_rst;
|
||||
struct stmmac_axi *axi;
|
||||
int has_gmac4;
|
||||
bool has_sun8i;
|
||||
bool tso_en;
|
||||
int rss_en;
|
||||
int mac_port_sel_speed;
|
||||
|
||||
Reference in New Issue
Block a user