Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3892404pxu; Sun, 20 Dec 2020 20:53:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQfSA3E7vqealsgAkJNfoKo+THx1QJ7RzRllXdqQsppkzOzwfWy3x/xtiqX44Lm0Yhvh46 X-Received: by 2002:a05:6402:8d5:: with SMTP id d21mr4173034edz.57.1608526427034; Sun, 20 Dec 2020 20:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608526427; cv=none; d=google.com; s=arc-20160816; b=bS9QiK0PjU+E/QyghDgh1Jxq6mRp5WAGQES+iZpTnaAuu7aRccRkrME4gRxOaq2yqm ovdYwzDfsq9lh4672BPDlAmHyCnyWCGb2Gy/7Iv3/1MIz9FwPoCDvIVFb5pErdGLVDYt QS84LRgTxHd/wQtx2zsrDAmK+sRtLuxSNfIZumYUSNlNNMv8UY2d/z5MtZp4fDlIXq3Z bRRFeoIKaQluCr12RRelAJadmU5G9ngcb+5kIks00SxxGQLJm6yiepPpUKdfTTKpKDku Ksa4h+9gpZm4WAm8ubnmrOcEu4BT3PQdx9f4XnPMsDimPZi6JnmpXSHBK55JG4vPvW2Q D1JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tFwj2LZf4TLQNNH65N7opFkGsQwhxBKDS8aHDIPcOm8=; b=U9466mVWrcj3UkIUBTijiJu6efCbngLSzlBisGf+LXS69tKuaV5+dcMRH6XqRl2E1j sIGI2qxxVvSC5e+GHUsUk42lAjLXgkeNWhQBNetFZ0YkJpc9m2uB081yVMDWB+Z0+xT2 LhPSIS3sAL5DidbV1E5brXZEy/LRMj87unjqmU4I5vOVrJ51hnd8cPN8Z6M3njXZBN1I VpNnHTZ6aFgyRdKZgtM6BItwt1oyRHcq1aWPON0UzFG/ZC/c/9j9kGrxbwpOrbeC8p9C i0yIM++nFQpfd2R51jdQbE/DEWKbTOW3lEU1kNmOHUdPKYqeFHzZpQ55JLSlbVq6q5m+ LM3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Nx1V9KdO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si10479848edq.202.2020.12.20.20.53.24; Sun, 20 Dec 2020 20:53:47 -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; dkim=pass header.i=@konsulko.com header.s=google header.b=Nx1V9KdO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726552AbgLUEwZ (ORCPT + 99 others); Sun, 20 Dec 2020 23:52:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbgLUEwY (ORCPT ); Sun, 20 Dec 2020 23:52:24 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05D41C061282 for ; Sun, 20 Dec 2020 20:51:05 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id w6so5802737pfu.1 for ; Sun, 20 Dec 2020 20:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tFwj2LZf4TLQNNH65N7opFkGsQwhxBKDS8aHDIPcOm8=; b=Nx1V9KdO5Yrw/1AStKJgg12eyjQZaE/VM2l4IUPDMCSpTpVMKRmXM0iFPUktL57Pe/ I3mGg6dBvaiJTbJtwP7lrCK0+R19rnLx+61KDrFPv5E8wQEabMMoJwJoFBC/KPZXem/g E2ekJgj5EI4SJ4fdSSzm4kPBp+h7+IVYOwoFg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tFwj2LZf4TLQNNH65N7opFkGsQwhxBKDS8aHDIPcOm8=; b=gBXiQirsQ20jti23yKHfiQR6p5C+2hvaqm/btvI6AUEmCo2fJL93dTAzbtff16PMOF Wf/bfOkgzqAoXg0kRtDz1tTuYqsHFDqeUoRJb6DFOEj9gRmDWcoWkiopASq+evmhBXBZ QK6NVudcrn2id+8coNLQTS7kOX2nD6aMq/7lxj4ArK4EUaRRXcQ2ggJWTwnN2H9nlsRB NtOcrFk/3hLpdScVp9hJQDn2Ga3tV2+6/z3bH/kj81CH03QKAJ/cdX/6pJ01tyCH5KuB NE8ATNwBS0NIun62crUaqeqX6eaPCAxdfnWrQbdbe6e3ONnDFvqgBaZLxNKsjlvmxV6+ JgiA== X-Gm-Message-State: AOAM5321+9ObRMQ9Y7HEQDoGk7PcUnx7xOe45IIHaSqgPJqHwFDD5kGB l81Mt8JQ+Pl0s3/M4Ose2w9/fBCG/E0cs3vG8YRaFtZ6aYc= X-Received: by 2002:a05:6e02:102f:: with SMTP id o15mr13978956ilj.142.1608501928572; Sun, 20 Dec 2020 14:05:28 -0800 (PST) MIME-Version: 1.0 References: <20201220015057.107246-1-maxwell.leiter@gmail.com> In-Reply-To: <20201220015057.107246-1-maxwell.leiter@gmail.com> From: Matt Ranostay Date: Sun, 20 Dec 2020 14:05:17 -0800 Message-ID: Subject: Re: [PATCH] iio:light:apds9960 add detection for MSHW0184 ACPI device in apds9960 driver To: Max Leiter Cc: "open list:IIO SUBSYSTEM AND DRIVERS" , blaz@mxxn.io, Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Alexandru Ardelean , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 >