Skip to content

Commit d9bc9ec

Browse files
bijudasdavem330
authored andcommitted
ravb: Rename "ravb_set_features_rx_csum" function to "ravb_set_features_rcar"
Rename "ravb_set_features_rx_csum" function to "ravb_set_features_rcar" and replace the function pointer "set_rx_csum_feature" with "set_feature". Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Suggested-by: Sergey Shtylyov <s.shtylyov@omp.ru> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6b7b0c3 commit d9bc9ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/net/ethernet/renesas/ravb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ struct ravb_hw_info {
985985
void *(*alloc_rx_desc)(struct net_device *ndev, int q);
986986
bool (*receive)(struct net_device *ndev, int *quota, int q);
987987
void (*set_rate)(struct net_device *ndev);
988-
int (*set_rx_csum_feature)(struct net_device *ndev, netdev_features_t features);
988+
int (*set_feature)(struct net_device *ndev, netdev_features_t features);
989989
void (*dmac_init)(struct net_device *ndev);
990990
void (*emac_init)(struct net_device *ndev);
991991
const char (*gstrings_stats)[ETH_GSTRING_LEN];

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,8 +1918,8 @@ static void ravb_set_rx_csum(struct net_device *ndev, bool enable)
19181918
spin_unlock_irqrestore(&priv->lock, flags);
19191919
}
19201920

1921-
static int ravb_set_features_rx_csum(struct net_device *ndev,
1922-
netdev_features_t features)
1921+
static int ravb_set_features_rcar(struct net_device *ndev,
1922+
netdev_features_t features)
19231923
{
19241924
netdev_features_t changed = ndev->features ^ features;
19251925

@@ -1937,7 +1937,7 @@ static int ravb_set_features(struct net_device *ndev,
19371937
struct ravb_private *priv = netdev_priv(ndev);
19381938
const struct ravb_hw_info *info = priv->info;
19391939

1940-
return info->set_rx_csum_feature(ndev, features);
1940+
return info->set_feature(ndev, features);
19411941
}
19421942

19431943
static const struct net_device_ops ravb_netdev_ops = {
@@ -2006,7 +2006,7 @@ static const struct ravb_hw_info ravb_gen3_hw_info = {
20062006
.alloc_rx_desc = ravb_alloc_rx_desc,
20072007
.receive = ravb_rcar_rx,
20082008
.set_rate = ravb_set_rate,
2009-
.set_rx_csum_feature = ravb_set_features_rx_csum,
2009+
.set_feature = ravb_set_features_rcar,
20102010
.dmac_init = ravb_rcar_dmac_init,
20112011
.emac_init = ravb_rcar_emac_init,
20122012
.gstrings_stats = ravb_gstrings_stats,
@@ -2027,7 +2027,7 @@ static const struct ravb_hw_info ravb_gen2_hw_info = {
20272027
.alloc_rx_desc = ravb_alloc_rx_desc,
20282028
.receive = ravb_rcar_rx,
20292029
.set_rate = ravb_set_rate,
2030-
.set_rx_csum_feature = ravb_set_features_rx_csum,
2030+
.set_feature = ravb_set_features_rcar,
20312031
.dmac_init = ravb_rcar_dmac_init,
20322032
.emac_init = ravb_rcar_emac_init,
20332033
.gstrings_stats = ravb_gstrings_stats,

0 commit comments

Comments
 (0)