i2c: allow attaching IRQ resources to i2c_board_info
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Mar 2017 19:45:51 +0000 (11:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 1 Apr 2017 16:36:19 +0000 (09:36 -0700)
commit4124c4eba40256b65acb5016a1edfdd59a1960b6
tree6e4ca51577d3df12ada66b8bc62abfd7d444c5a7
parent0daaf99d8424f12cdf87e00c435c9cb93667f519
i2c: allow attaching IRQ resources to i2c_board_info

Simple integer for interrupt number is not expressive enough, as it does
not convey interrupt trigger type that should be used. Let's allow
attaching array of resources to the board info and have i2c core parse
first IRQ resource and set up interrupt trigger as needed.

Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/i2c/i2c-boardinfo.c
drivers/i2c/i2c-core.c
include/linux/i2c.h