Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eee3919c authored by Johan Hovold's avatar Johan Hovold Committed by Linus Walleij
Browse files

gpio: drop broken to_gpio_irq_chip() helper



Drop the broken to_gpio_irq_chip() container_of() helper, which would
break the build for anyone who tries to use it.

Specifically, struct gpio_irq_chip only holds a pointer to a struct
irq_chip so using container_of() on an irq-chip pointer makes no sense.

Fixes: da80ff81 ("gpio: Move irqchip into struct gpio_irq_chip")
Cc: Thierry Reding <treding@nvidia.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8b37eb74
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -166,11 +166,6 @@ struct gpio_irq_chip {
	 */
	void		(*irq_disable)(struct irq_data *data);
};

static inline struct gpio_irq_chip *to_gpio_irq_chip(struct irq_chip *chip)
{
	return container_of(chip, struct gpio_irq_chip, chip);
}
#endif

/**