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>
This commit is contained in:
parent
e7b28845d7
commit
cc5c3985a3
|
@ -238,6 +238,14 @@ static int __init setup_isl29018_als(const struct dmi_system_id *id)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int __init setup_isl29023_als(const struct dmi_system_id *id)
|
||||||
|
{
|
||||||
|
/* add isl29023 light sensor on Panel GMBus */
|
||||||
|
als = add_i2c_device("lightsensor", I2C_ADAPTER_PANEL,
|
||||||
|
&isl_als_device);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int __init setup_tsl2583_als(const struct dmi_system_id *id)
|
static int __init setup_tsl2583_als(const struct dmi_system_id *id)
|
||||||
{
|
{
|
||||||
/* add tsl2583 light sensor on smbus */
|
/* add tsl2583 light sensor on smbus */
|
||||||
|
@ -285,6 +293,14 @@ static struct dmi_system_id __initdata chromeos_laptop_dmi_table[] = {
|
||||||
},
|
},
|
||||||
.callback = setup_isl29018_als,
|
.callback = setup_isl29018_als,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.ident = "Chromebook Pixel - Light Sensor",
|
||||||
|
.matches = {
|
||||||
|
DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
|
||||||
|
DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
|
||||||
|
},
|
||||||
|
.callback = setup_isl29023_als,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.ident = "Acer C7 Chromebook - Touchpad",
|
.ident = "Acer C7 Chromebook - Touchpad",
|
||||||
.matches = {
|
.matches = {
|
||||||
|
|
Loading…
Reference in New Issue