mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
can: rcar_canfd: Rename rcar_canfd_setrnc() to rcar_canfd_set_rnc()
Insert an underscore in the function's name, for consistency with other getter and setter helper functions. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Link: https://patch.msgid.link/9fdc2584ce27b2784ecea76390d2a81eab289d0d.1749655315.git.geert+renesas@glider.be Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
e4d8eb97a4
commit
1b76dca8fd
|
|
@ -830,8 +830,8 @@ static void rcar_canfd_tx_failure_cleanup(struct net_device *ndev)
|
|||
can_free_echo_skb(ndev, i, NULL);
|
||||
}
|
||||
|
||||
static void rcar_canfd_setrnc(struct rcar_canfd_global *gpriv, unsigned int ch,
|
||||
unsigned int num_rules)
|
||||
static void rcar_canfd_set_rnc(struct rcar_canfd_global *gpriv, unsigned int ch,
|
||||
unsigned int num_rules)
|
||||
{
|
||||
unsigned int rnc_stride = 32 / gpriv->info->rnc_field_width;
|
||||
unsigned int shift = 32 - (ch % rnc_stride + 1) * gpriv->info->rnc_field_width;
|
||||
|
|
@ -960,7 +960,7 @@ static void rcar_canfd_configure_afl_rules(struct rcar_canfd_global *gpriv,
|
|||
RCANFD_GAFLECTR_AFLDAE));
|
||||
|
||||
/* Write number of rules for channel */
|
||||
rcar_canfd_setrnc(gpriv, ch, num_rules);
|
||||
rcar_canfd_set_rnc(gpriv, ch, num_rules);
|
||||
if (gpriv->info->shared_can_regs)
|
||||
offset = RCANFD_GEN4_GAFL_OFFSET;
|
||||
else if (gpriv->fdmode)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user