Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: davinci: use irq_data_get_chip_type

Use irq_data_get_chip_type() instead of container_of().

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Geliang Tang and committed by
Linus Walleij
ccdbddfe 5df7fd46

+1 -2
+1 -2
drivers/gpio/gpio-davinci.c
··· 432 432 { 433 433 static struct irq_chip_type gpio_unbanked; 434 434 435 - gpio_unbanked = *container_of(irq_get_chip(irq), 436 - struct irq_chip_type, chip); 435 + gpio_unbanked = *irq_data_get_chip_type(irq_get_irq_data(irq)); 437 436 438 437 return &gpio_unbanked.chip; 439 438 };