aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/chromeos_laptop.c
diff options
context:
space:
mode:
authorBenson Leung <bleung@chromium.org>2013-02-21 15:14:57 -0500
committerMatthew Garrett <matthew.garrett@nebula.com>2013-02-27 08:30:46 -0500
commitcc5c3985a3b17cc7a4bfdf084950d92c8919ea4b (patch)
tree66a20761de6ba9394bd4ca40a826390caee8e868 /drivers/platform/x86/chromeos_laptop.c
parente7b28845d794b0f382a3942558c24e63d5e45c32 (diff)
Platform: x86: chromeos_laptop - Add isl light sensor for Pixel
The Chromebook Pixel uses an isl29023 ambient light sensor on the PANEL GMBus. Signed-off-by: Benson Leung <bleung@chromium.org> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform/x86/chromeos_laptop.c')
-rw-r--r--drivers/platform/x86/chromeos_laptop.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/platform/x86/chromeos_laptop.c b/drivers/platform/x86/chromeos_laptop.c
index 6bde4e4c93b4..04a11cca399d 100644
--- a/drivers/platform/x86/chromeos_laptop.c
+++ b/drivers/platform/x86/chromeos_laptop.c
@@ -238,6 +238,14 @@ static int __init setup_isl29018_als(const struct dmi_system_id *id)
238 return 0; 238 return 0;
239} 239}
240 240
241static int __init setup_isl29023_als(const struct dmi_system_id *id)
242{
243 /* add isl29023 light sensor on Panel GMBus */
244 als = add_i2c_device("lightsensor", I2C_ADAPTER_PANEL,
245 &isl_als_device);
246 return 0;
247}
248
241static int __init setup_tsl2583_als(const struct dmi_system_id *id) 249static int __init setup_tsl2583_als(const struct dmi_system_id *id)
242{ 250{
243 /* add tsl2583 light sensor on smbus */ 251 /* add tsl2583 light sensor on smbus */
@@ -286,6 +294,14 @@ static struct dmi_system_id __initdata chromeos_laptop_dmi_table[] = {
286 .callback = setup_isl29018_als, 294 .callback = setup_isl29018_als,
287 }, 295 },
288 { 296 {
297 .ident = "Chromebook Pixel - Light Sensor",
298 .matches = {
299 DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
300 DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
301 },
302 .callback = setup_isl29023_als,
303 },
304 {
289 .ident = "Acer C7 Chromebook - Touchpad", 305 .ident = "Acer C7 Chromebook - Touchpad",
290 .matches = { 306 .matches = {
291 DMI_MATCH(DMI_PRODUCT_NAME, "Parrot"), 307 DMI_MATCH(DMI_PRODUCT_NAME, "Parrot"),