]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit022447fbf089717b5147e551c34f19a6ad632665
treeacdb6544b7de812be9f9f378eb9fc3c84ace1427
parentb562a3b0b7c1a0814bcd7699a70d8dd9f80e4888
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