net: fec: remove unused members from struct fec_enet_private
authorWei Fang <wei.fang@nxp.com>
Tue, 18 Jul 2023 09:09:28 +0000 (17:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 03:59:16 +0000 (20:59 -0700)
Three members of struct fec_enet_private have not been used since
they were first introduced into the FEC driver (commit 6605b730c061
("FEC: Add time stamping code and a PTP hardware clock")). Namely,
last_overflow_check, rx_hwtstamp_filter and base_incval. These
unused members make the struct fec_enet_private a bit messy and
might confuse the readers. There is no reason to keep them in the
FEC driver any longer.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://lore.kernel.org/r/20230718090928.2654347-4-wei.fang@nxp.com
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec.h

index 81c9a07..8f1edcc 100644 (file)
@@ -651,12 +651,9 @@ struct fec_enet_private {
 
        struct ptp_clock *ptp_clock;
        struct ptp_clock_info ptp_caps;
-       unsigned long last_overflow_check;
        spinlock_t tmreg_lock;
        struct cyclecounter cc;
        struct timecounter tc;
-       int rx_hwtstamp_filter;
-       u32 base_incval;
        u32 cycle_speed;
        int hwts_rx_en;
        int hwts_tx_en;