mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
can: rcar_can: Consistently use ndev for net_device pointers
Most net_device pointers are named "ndev", but some are called "dev". Increase uniformity by always using "ndev". Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://patch.msgid.link/aac66fb5b5e1d6787121cf2ec36b551b41d4b32e.1755857536.git.geert+renesas@glider.be Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
fbfa8f4f3d
commit
7abf704493
|
|
@ -420,9 +420,9 @@ static irqreturn_t rcar_can_interrupt(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static void rcar_can_set_bittiming(struct net_device *dev)
|
||||
static void rcar_can_set_bittiming(struct net_device *ndev)
|
||||
{
|
||||
struct rcar_can_priv *priv = netdev_priv(dev);
|
||||
struct rcar_can_priv *priv = netdev_priv(ndev);
|
||||
struct can_bittiming *bt = &priv->can.bittiming;
|
||||
u32 bcr;
|
||||
|
||||
|
|
@ -715,10 +715,10 @@ static int rcar_can_do_set_mode(struct net_device *ndev, enum can_mode mode)
|
|||
}
|
||||
}
|
||||
|
||||
static int rcar_can_get_berr_counter(const struct net_device *dev,
|
||||
static int rcar_can_get_berr_counter(const struct net_device *ndev,
|
||||
struct can_berr_counter *bec)
|
||||
{
|
||||
struct rcar_can_priv *priv = netdev_priv(dev);
|
||||
struct rcar_can_priv *priv = netdev_priv(ndev);
|
||||
int err;
|
||||
|
||||
err = clk_prepare_enable(priv->clk);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user