]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: add a warning on gpiochip->to_irq defined
authorNikita Shubin <nikita.shubin@maquefel.me>
Mon, 18 Jan 2021 09:05:08 +0000 (12:05 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 19 Jan 2021 10:51:15 +0000 (11:51 +0100)
commit0ed6d8df0508a9c165c05c9984637ca1421d4947
tree49a731f93d21f7363c2605b48c6c8eb3d3a9440c
parentb250a78f9be8fa9137814ac41b4de2c423fe5845
gpiolib: add a warning on gpiochip->to_irq defined

gpiochip->to_irq method is redefined in gpiochip_add_irqchip.

A lot of gpiod driver's still define ->to_irq method, let's give
a gentle warning that they can no longer rely on it, so they can remove
it on ocassion.

Fixes: aea1b199b0e85 ("gpio: Implement tighter IRQ chip integration")
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c