]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mcp23s08: generalize irq property handling
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 15 May 2017 09:24:35 +0000 (11:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 May 2017 07:50:13 +0000 (09:50 +0200)
commit9d3ccb57e1b7121ff651ef7f633f51ed20dd46b7
treeff7d8e12b67fc7717c3803b2f3d3f99838bb65c1
parentb8115c31d06af5b0f36e01f300c54c04de8cc511
pinctrl: mcp23s08: generalize irq property handling

This moves irq property handling from spi/i2c specific code into
the generic mcp23s08_probe_one. This is possible because the
device properties are named equally.

As a side-effect this drops support for setting the properties via
pdata, which has no mainline users. If boardcode wants to enable
the chip as interrupt controller it can attach the device properties
instead.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c
include/linux/spi/mcp23s08.h