Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dwc-xlgmac: Fix spelling mistake in function name

There is a spelling mistake in the function name alloc_channles_and_rings.
Fix this by renaming it to alloc_channels_and_rings.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210204094944.51460-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Colin Ian King and committed by
Jakub Kicinski
a455fcd7 c1fcda2b

+3 -3
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
··· 634 634 635 635 void xlgmac_init_desc_ops(struct xlgmac_desc_ops *desc_ops) 636 636 { 637 - desc_ops->alloc_channles_and_rings = xlgmac_alloc_channels_and_rings; 637 + desc_ops->alloc_channels_and_rings = xlgmac_alloc_channels_and_rings; 638 638 desc_ops->free_channels_and_rings = xlgmac_free_channels_and_rings; 639 639 desc_ops->map_tx_skb = xlgmac_map_tx_skb; 640 640 desc_ops->map_rx_buffer = xlgmac_map_rx_buffer;
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
··· 654 654 pdata->rx_buf_size = ret; 655 655 656 656 /* Allocate the channels and rings */ 657 - ret = desc_ops->alloc_channles_and_rings(pdata); 657 + ret = desc_ops->alloc_channels_and_rings(pdata); 658 658 if (ret) 659 659 return ret; 660 660
+1 -1
drivers/net/ethernet/synopsys/dwc-xlgmac.h
··· 379 379 } ____cacheline_aligned; 380 380 381 381 struct xlgmac_desc_ops { 382 - int (*alloc_channles_and_rings)(struct xlgmac_pdata *pdata); 382 + int (*alloc_channels_and_rings)(struct xlgmac_pdata *pdata); 383 383 void (*free_channels_and_rings)(struct xlgmac_pdata *pdata); 384 384 int (*map_tx_skb)(struct xlgmac_channel *channel, 385 385 struct sk_buff *skb);