gpio: tegra186: Rename flow variable to type
authorThierry Reding <treding@nvidia.com>
Thu, 29 Nov 2018 17:03:10 +0000 (18:03 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 13:34:10 +0000 (14:34 +0100)
The IRQ core code refers to the interrupt type by that name, whereas the
term flow is almost never used. Some GPIO controllers use the term
flow_type, but it is most consistent to just go with the IRQ core
terminology.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra186.c

index 9d0292c8a19993f30545e957ecdb1ecdf8cdcef0..66ec38bb79545c0520fb0509c7e65f14e438f1ce 100644 (file)
@@ -279,7 +279,7 @@ static void tegra186_irq_unmask(struct irq_data *data)
        writel(value, base + TEGRA186_GPIO_ENABLE_CONFIG);
 }
 
-static int tegra186_irq_set_type(struct irq_data *data, unsigned int flow)
+static int tegra186_irq_set_type(struct irq_data *data, unsigned int type)
 {
        struct tegra_gpio *gpio = irq_data_get_irq_chip_data(data);
        void __iomem *base;
@@ -293,7 +293,7 @@ static int tegra186_irq_set_type(struct irq_data *data, unsigned int flow)
        value &= ~TEGRA186_GPIO_ENABLE_CONFIG_TRIGGER_TYPE_MASK;
        value &= ~TEGRA186_GPIO_ENABLE_CONFIG_TRIGGER_LEVEL;
 
-       switch (flow & IRQ_TYPE_SENSE_MASK) {
+       switch (type & IRQ_TYPE_SENSE_MASK) {
        case IRQ_TYPE_NONE:
                break;
 
@@ -325,7 +325,7 @@ static int tegra186_irq_set_type(struct irq_data *data, unsigned int flow)
 
        writel(value, base + TEGRA186_GPIO_ENABLE_CONFIG);
 
-       if ((flow & IRQ_TYPE_EDGE_BOTH) == 0)
+       if ((type & IRQ_TYPE_EDGE_BOTH) == 0)
                irq_set_handler_locked(data, handle_level_irq);
        else
                irq_set_handler_locked(data, handle_edge_irq);