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)
commit5b1a7e803a9fd960b6d75a1d970519c57cfe2618
treeff7d8e12b67fc7717c3803b2f3d3f99838bb65c1
parent0d7fcd504cbe8e2a6269a9e267b044700f3da876
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