8f24e12ef9acec8a0380954d50f996102e39be0a
[openwrt/openwrt.git] /
1 From f7f3c7abdef9fb6c9668a3945ec791fb206b4ee8 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Fri, 1 Mar 2019 16:29:47 +0100
4 Subject: [PATCH] can: flexcan: flexcan_irq(): rename variable reg_iflag ->
5 reg_iflag_rx
6
7 This patch renames the variable reg_iflag in the flexcan_irq() function
8 to reg_iflag_rx. This better reflects the contents of the varibale. It
9 does not hold the unmodified iflag registers, instead all non RX
10 interrupts have been masked.
11
12 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
13 ---
14 drivers/net/can/flexcan.c | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 --- a/drivers/net/can/flexcan.c
18 +++ b/drivers/net/can/flexcan.c
19 @@ -897,13 +897,13 @@ static irqreturn_t flexcan_irq(int irq,
20
21 /* reception interrupt */
22 if (priv->devtype_data->quirks & FLEXCAN_QUIRK_USE_OFF_TIMESTAMP) {
23 - u64 reg_iflag;
24 + u64 reg_iflag_rx;
25 int ret;
26
27 - while ((reg_iflag = flexcan_read_reg_iflag_rx(priv))) {
28 + while ((reg_iflag_rx = flexcan_read_reg_iflag_rx(priv))) {
29 handled = IRQ_HANDLED;
30 ret = can_rx_offload_irq_offload_timestamp(&priv->offload,
31 - reg_iflag);
32 + reg_iflag_rx);
33 if (!ret)
34 break;
35 }