]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: drop broken to_gpio_irq_chip() helper
authorJohan Hovold <johan@kernel.org>
Mon, 12 Nov 2018 14:10:28 +0000 (15:10 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Nov 2018 21:46:02 +0000 (22:46 +0100)
commiteee3919c5f2949a8b7b1e9fa239d153be1538656
tree829253ea08aa052afe571211d4a5535fbdb34785
parent8b37eb74d0e30dfc87bf2025b7958a9730a7b5eb
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: da80ff81a8f5 ("gpio: Move irqchip into struct gpio_irq_chip")
Cc: Thierry Reding <treding@nvidia.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h