platform/chrome: chromeos_laptop - rely on I2C to set up interrupt trigger
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Mar 2018 22:31:35 +0000 (15:31 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 10 Apr 2018 05:49:59 +0000 (22:49 -0700)
commite6215eeaa23c5d80a72caa91fc80795b9cde038f
treeacdb6544b7de812be9f9f378eb9fc3c84ace1427
parent8d88cb03c22e4cbde4c3020883f534e8ba7f5c79
platform/chrome: chromeos_laptop - rely on I2C to set up interrupt trigger

Instead of passing interrupt flags via platform data to drivers, or
hoping that drivers will do the right thing and set it up the way we
need, let's set up IRQ resource and attach it to the I2C board info, and
let I2C core set it up for us.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/chromeos_laptop.c