CHROMIUM: chromeos_laptop: fix ALS entries
authorVincent Palatin <vpalatin@chromium.org>
Thu, 22 Mar 2012 22:49:06 +0000 (15:49 -0700)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:14:40 +0000 (15:14 -0700)
commitf6aac88a64bee6dc4287eb82913bae3b48103bbe
treeeca82e90c832dc2881b14eab72e41e38e586f528
parentfc20cb817d66a4441982af3ee9f19a4c253e6460
CHROMIUM: chromeos_laptop: fix ALS entries

- fix incorrect use of .matches to share callbacks among boards DMI
  matches entries :
  it's doing an AND operation between the DMI_MATCH clause.
- on Link, the ALS has been moved to the Panel DDC GMBus on Proto-1.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chromium-os:28217
TEST=on Link proto-1, verify that the ALS is detected properly at
startup and we can read its value from
/sys/bus/iio/devices/iio:device0/illuminance0_input node.

Change-Id: Ic4fdd765cb3c86b07112fd607b79644ebbe0a6cd
Reviewed-on: https://gerrit.chromium.org/gerrit/18910
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Bryan Freed <bfreed@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Commit-Ready: Benson Leung <bleung@chromium.org>
drivers/platform/x86/chromeos_laptop.c