Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4203682pxu; Mon, 21 Dec 2020 06:45:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn8KIGHU2w5K9PSD/J4y+1A1Iq6Qalzy6Vi7Lo+/Q1uvA4E2dK4mthDnklTROL5QRkWEoR X-Received: by 2002:a50:f307:: with SMTP id p7mr16170465edm.368.1608561955285; Mon, 21 Dec 2020 06:45:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608561955; cv=none; d=google.com; s=arc-20160816; b=xp3F7ULSTzdy4AL3f60gwzCg44WqwFzLB529SJYCQC2/plgMX1snx1xOKXXgGE+8WE EWLY6kHmo1F/HwdHOM2ak0Ham747gLC1oqtN06Z/GNhC2w9dIZIxyEUBSlwfhb2bIJCj ZUUDmi5rwWLph72pWfbxnihFQVB7Hh9n9JYTYYW0YcKJwvqgVhlsTwCb8PbwBdKcTFhl A1WacFZSvNhe9xIIjcKjecYu8j2oPkZOkln2vzuLRIAr0ZVzOAczsb4aBzdxBia50vJ6 uOQ8hbGGaBiAAXfKieLLmMuYIfKxPxafoMcPLQRFk6rare/VUZCjfpuW91imHrDfOGIT BmEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=NHlu+zWK2eKONsbFiHKmpcNrC/tb5SWr7YxhyolS3nA=; b=gRxhemGg840hd4y8r9jxSfEa6X7GPx1uIzgSOab2wWIzS4Nrn7LH1n3BDTzHShL2iN VltlTKOKCpP8ih07BEXeMbghLHLrVyGanEOvxC76AsqHecwiEXj2BBDEIGQEknq+Ga3t i+bu7lhLc/ROtw2hriRav0Tyw7ZsJkyv1I/lAOpoKmM4ZJFC0roDDnp2Z3j0Hg5Xi1GY oqJBRr/ejOAQP+0qVvSe6R1q8ILMxf54wk3zVlwqLfBgTdIpphvrKv7MnM1RRo8BuKWK dwemOvBBGSPV1GKyrLWwO/SupveSW90Kg1+7bu6+RTQJuJAm2CnMjmcqdCG674h0tUii w/UA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e22si2153357edu.9.2020.12.21.06.45.32; Mon, 21 Dec 2020 06:45:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbgLUOni (ORCPT + 99 others); Mon, 21 Dec 2020 09:43:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:56948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbgLUOni (ORCPT ); Mon, 21 Dec 2020 09:43:38 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4306822BEF; Mon, 21 Dec 2020 14:42:56 +0000 (UTC) Date: Mon, 21 Dec 2020 14:42:55 +0000 From: Jonathan Cameron To: Matt Ranostay Cc: Max Leiter , "open list:IIO SUBSYSTEM AND DRIVERS" , blaz@mxxn.io, Lars-Peter Clausen , Peter Meerwald-Stadler , Alexandru Ardelean , open list Subject: Re: [PATCH] iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver Message-ID: <20201221144255.5657887f@archlinux> In-Reply-To: References: <20201220015057.107246-1-maxwell.leiter@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 20 Dec 2020 14:05:17 -0800 Matt Ranostay wrote: > On Sat, Dec 19, 2020 at 5:51 PM Max Leiter wrote: > > > > The device is used in the Microsoft Surface Book 3 and Surface Pro 7 > > > > Signed-off-by: Max Leiter > > Reviewed-by: Matt Ranostay Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to see if we missed anything. Thanks, Jonathan > > > --- > > drivers/iio/light/apds9960.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c > > index 9afb3fcc74e6..20719141c03a 100644 > > --- a/drivers/iio/light/apds9960.c > > +++ b/drivers/iio/light/apds9960.c > > @@ -8,6 +8,7 @@ > > * TODO: gesture + proximity calib offsets > > */ > > > > +#include > > #include > > #include > > #include > > @@ -1113,6 +1114,12 @@ static const struct i2c_device_id apds9960_id[] = { > > }; > > MODULE_DEVICE_TABLE(i2c, apds9960_id); > > > > +static const struct acpi_device_id apds9960_acpi_match[] = { > > + { "MSHW0184" }, > > + { } > > +}; > > +MODULE_DEVICE_TABLE(acpi, apds9960_acpi_match); > > + > > static const struct of_device_id apds9960_of_match[] = { > > { .compatible = "avago,apds9960" }, > > { } > > @@ -1124,6 +1131,7 @@ static struct i2c_driver apds9960_driver = { > > .name = APDS9960_DRV_NAME, > > .of_match_table = apds9960_of_match, > > .pm = &apds9960_pm_ops, > > + .acpi_match_table = apds9960_acpi_match, > > }, > > .probe = apds9960_probe, > > .remove = apds9960_remove, > > -- > > 2.29.2 > >