diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-07-10 10:59:58 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-13 20:57:14 -0700 |
commit | aa5513f5d95f6b5311de859f8f466a09863bedf6 (patch) | |
tree | ce874607d5fd73488cddf5f5e0b6f6779be23c48 /drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | |
parent | 956c3f09b9c4cc9567ca11c84007545b939e61aa (diff) | |
download | linux-stable-aa5513f5d95f6b5311de859f8f466a09863bedf6.tar.gz linux-stable-aa5513f5d95f6b5311de859f8f466a09863bedf6.tar.bz2 linux-stable-aa5513f5d95f6b5311de859f8f466a09863bedf6.zip |
net: stmmac: replace the ext_snapshot_en 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-10-brgl@bgdev.pl
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index d8bcf9452197..a3d0da4e9e91 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -326,7 +326,7 @@ static int intel_crosststamp(ktime_t *device, /* Both internal crosstimestamping and external triggered event * timestamping cannot be run concurrently. */ - if (priv->plat->ext_snapshot_en) + if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) return -EBUSY; priv->plat->int_snapshot_en = 1; |