[PATCH 2/2] i2c: allow attaching IRQ resources to i2c_board_info

2017-03-08 Thread Dmitry Torokhov
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. Signed-off-by: Dmitry

[PATCH 2/2] i2c: allow attaching IRQ resources to i2c_board_info

2017-03-08 Thread Dmitry Torokhov
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. Signed-off-by: Dmitry