* [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep`
@ 2023-07-13 11:09 Csókás Bence
2023-07-15 9:27 ` Simon Horman
2023-07-17 7:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Csókás Bence @ 2023-07-13 11:09 UTC (permalink / raw)
To: netdev@vger.kernel.org
Cc: Richard Cochran, davem@davemloft.net, a.fatoum@pengutronix.de,
Andrew Lunn, Csókás Bence, Jakub Kicinski,
Maciej Fijalkowski, kernel@pengutronix.de, Simon Horman
Rename local `struct fec_enet_private *adapter` to `fep` in `fec_ptp_gettime()` to match the rest of the driver
Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
---
drivers/net/ethernet/freescale/fec_ptp.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c
index ab86bb8562ef..afc658d2c271 100644
--- a/drivers/net/ethernet/freescale/fec_ptp.c
+++ b/drivers/net/ethernet/freescale/fec_ptp.c
@@ -443,21 +443,21 @@ static int fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta)
*/
static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts)
{
- struct fec_enet_private *adapter =
+ struct fec_enet_private *fep =
container_of(ptp, struct fec_enet_private, ptp_caps);
u64 ns;
unsigned long flags;
- mutex_lock(&adapter->ptp_clk_mutex);
+ mutex_lock(&fep->ptp_clk_mutex);
/* Check the ptp clock */
- if (!adapter->ptp_clk_on) {
- mutex_unlock(&adapter->ptp_clk_mutex);
+ if (!fep->ptp_clk_on) {
+ mutex_unlock(&fep->ptp_clk_mutex);
return -EINVAL;
}
- spin_lock_irqsave(&adapter->tmreg_lock, flags);
- ns = timecounter_read(&adapter->tc);
- spin_unlock_irqrestore(&adapter->tmreg_lock, flags);
- mutex_unlock(&adapter->ptp_clk_mutex);
+ spin_lock_irqsave(&fep->tmreg_lock, flags);
+ ns = timecounter_read(&fep->tc);
+ spin_unlock_irqrestore(&fep->tmreg_lock, flags);
+ mutex_unlock(&fep->ptp_clk_mutex);
*ts = ns_to_timespec64(ns);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep`
2023-07-13 11:09 [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep` Csókás Bence
@ 2023-07-15 9:27 ` Simon Horman
2023-07-17 7:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-07-15 9:27 UTC (permalink / raw)
To: Csókás Bence
Cc: netdev@vger.kernel.org, Richard Cochran, davem@davemloft.net,
a.fatoum@pengutronix.de, Andrew Lunn, Jakub Kicinski,
Maciej Fijalkowski, kernel@pengutronix.de
On Thu, Jul 13, 2023 at 11:09:33AM +0000, Csókás Bence wrote:
> Rename local `struct fec_enet_private *adapter` to `fep` in `fec_ptp_gettime()` to match the rest of the driver
>
> Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep`
2023-07-13 11:09 [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep` Csókás Bence
2023-07-15 9:27 ` Simon Horman
@ 2023-07-17 7:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-17 7:10 UTC (permalink / raw)
To: =?utf-8?b?Q3PDs2vDoXMgQmVuY2UgPGNzb2thcy5iZW5jZUBwcm9sYW4uaHU+?=
Cc: netdev, richardcochran, davem, a.fatoum, andrew, Csokas.Bence,
kuba, maciej.fijalkowski, kernel, simon.horman
Hello:
This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:
On Thu, 13 Jul 2023 11:09:33 +0000 you wrote:
> Rename local `struct fec_enet_private *adapter` to `fep` in `fec_ptp_gettime()` to match the rest of the driver
>
> Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
> ---
> drivers/net/ethernet/freescale/fec_ptp.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
Here is the summary with links:
- [net-next,resubmit] net: fec: Refactor: rename `adapter` to `fep`
https://git.kernel.org/netdev/net-next/c/f08469d0f664
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-17 7:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 11:09 [PATCH net-next resubmit] net: fec: Refactor: rename `adapter` to `fep` Csókás Bence
2023-07-15 9:27 ` Simon Horman
2023-07-17 7:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).