Commit dcfd2a29 authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by Bartosz Golaszewski

gpio: uniphier: Use helper functions to get private data from IRQ data

Use helper functions to get private data from IRQ data instead of direct
access. No functional changes intended.
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent e1db0f55
...@@ -179,7 +179,7 @@ static int uniphier_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) ...@@ -179,7 +179,7 @@ static int uniphier_gpio_to_irq(struct gpio_chip *chip, unsigned int offset)
static void uniphier_gpio_irq_mask(struct irq_data *data) static void uniphier_gpio_irq_mask(struct irq_data *data)
{ {
struct uniphier_gpio_priv *priv = data->chip_data; struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data);
u32 mask = BIT(irqd_to_hwirq(data)); u32 mask = BIT(irqd_to_hwirq(data));
uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, 0); uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, 0);
...@@ -189,7 +189,7 @@ static void uniphier_gpio_irq_mask(struct irq_data *data) ...@@ -189,7 +189,7 @@ static void uniphier_gpio_irq_mask(struct irq_data *data)
static void uniphier_gpio_irq_unmask(struct irq_data *data) static void uniphier_gpio_irq_unmask(struct irq_data *data)
{ {
struct uniphier_gpio_priv *priv = data->chip_data; struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data);
u32 mask = BIT(irqd_to_hwirq(data)); u32 mask = BIT(irqd_to_hwirq(data));
uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, mask); uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, mask);
...@@ -199,7 +199,7 @@ static void uniphier_gpio_irq_unmask(struct irq_data *data) ...@@ -199,7 +199,7 @@ static void uniphier_gpio_irq_unmask(struct irq_data *data)
static int uniphier_gpio_irq_set_type(struct irq_data *data, unsigned int type) static int uniphier_gpio_irq_set_type(struct irq_data *data, unsigned int type)
{ {
struct uniphier_gpio_priv *priv = data->chip_data; struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data);
u32 mask = BIT(irqd_to_hwirq(data)); u32 mask = BIT(irqd_to_hwirq(data));
u32 val = 0; u32 val = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment