]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: airoha: Rename get_src_port_id callback in get_sport
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 28 Apr 2026 05:23:38 +0000 (07:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Apr 2026 00:57:25 +0000 (17:57 -0700)
For code consistency, rename get_src_port_id callback in get_sport.
Please note this patch does not introduce any logical change and it is
just a cosmetic patch.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260428-airoha-get_src_port_id-callback-v1-1-3f765c91c1e8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h

index 2bb0a3ff9810087d5786d82a7a8b2b8e8874b1bd..56441b99448a3ad61f3688479991f05feff3de34 100644 (file)
@@ -1813,7 +1813,7 @@ static int airoha_set_gdm2_loopback(struct airoha_gdm_port *port)
        airoha_fe_clear(eth, REG_FE_VIP_PORT_EN, BIT(AIROHA_GDM2_IDX));
        airoha_fe_clear(eth, REG_FE_IFC_PORT_EN, BIT(AIROHA_GDM2_IDX));
 
-       src_port = eth->soc->ops.get_src_port_id(port, port->nbq);
+       src_port = eth->soc->ops.get_sport(port, port->nbq);
        if (src_port < 0)
                return src_port;
 
@@ -3187,7 +3187,7 @@ static const char * const en7581_xsi_rsts_names[] = {
        "xfp-mac",
 };
 
-static int airoha_en7581_get_src_port_id(struct airoha_gdm_port *port, int nbq)
+static int airoha_en7581_get_sport(struct airoha_gdm_port *port, int nbq)
 {
        switch (port->id) {
        case AIROHA_GDM3_IDX:
@@ -3240,7 +3240,7 @@ static const char * const an7583_xsi_rsts_names[] = {
        "xfp-mac",
 };
 
-static int airoha_an7583_get_src_port_id(struct airoha_gdm_port *port, int nbq)
+static int airoha_an7583_get_sport(struct airoha_gdm_port *port, int nbq)
 {
        switch (port->id) {
        case AIROHA_GDM3_IDX:
@@ -3288,7 +3288,7 @@ static const struct airoha_eth_soc_data en7581_soc_data = {
        .num_xsi_rsts = ARRAY_SIZE(en7581_xsi_rsts_names),
        .num_ppe = 2,
        .ops = {
-               .get_src_port_id = airoha_en7581_get_src_port_id,
+               .get_sport = airoha_en7581_get_sport,
                .get_vip_port = airoha_en7581_get_vip_port,
        },
 };
@@ -3299,7 +3299,7 @@ static const struct airoha_eth_soc_data an7583_soc_data = {
        .num_xsi_rsts = ARRAY_SIZE(an7583_xsi_rsts_names),
        .num_ppe = 1,
        .ops = {
-               .get_src_port_id = airoha_an7583_get_src_port_id,
+               .get_sport = airoha_an7583_get_sport,
                .get_vip_port = airoha_an7583_get_vip_port,
        },
 };
index e389d2fe3b86f05d3ace1aaee8c640f6511b8d31..1a052b898816c498e6592583422f58e7cbf1bddd 100644 (file)
@@ -578,7 +578,7 @@ struct airoha_eth_soc_data {
        int num_xsi_rsts;
        int num_ppe;
        struct {
-               int (*get_src_port_id)(struct airoha_gdm_port *port, int nbq);
+               int (*get_sport)(struct airoha_gdm_port *port, int nbq);
                u32 (*get_vip_port)(struct airoha_gdm_port *port, int nbq);
        } ops;
 };