Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp979827pxb; Tue, 9 Feb 2021 18:45:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbnIs7bEDK0w0p1C+kZEU8isAo5j3dPOIwdagrQ2QFrSCgmoJ64LKmwFGfPGuWxn6iAvmQ X-Received: by 2002:a17:907:948d:: with SMTP id dm13mr672972ejc.545.1612925147415; Tue, 09 Feb 2021 18:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612925147; cv=none; d=google.com; s=arc-20160816; b=LbBkSX3eQp8ck7R+WSwIrrKwILD25XN3NSXk2eyDgn5iM4q0nbwVZn4CpKTBNNAEH+ XUu2Fhx4y16VRIJe11Hc/ul+iyADIKmaL8DdEFjVkn1iD4GY77HcbtsKP8/f8yPRlLJv DwFJkmKtohUyxQbLE80+fBB4ZQ6JXW7+FYjzHD0o/Q7cUz2Yq49KWeZ7xsk4+XAOU7QT vRbOvPbm7QWNXIvJqKheNcAiH8JAaKAR0gEEDxJFteDV+qe7qX/EqAORrjuHCgWx2XPa SMkV246ZrLGruM/IwvDVgwDPnyYT4WVduo/LU0cjtNSmi2OzuyVhoitQzQ7+FeH+ia8J bTMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=6eNQGsk4HfU/BlZLIbxmLsaentzXDgONZtzHmgIk+94=; b=ZcmmfA7+PG26b+1NPT+hNFUsxon6cZp64J32rIqugU8/+7rFX103eezM9poIbZTE2n k6HRD/t8rzOei3Bo+v2DqydRTMFuoEN/FloXaos4sbuYyJnmCQAfFc564CubyuxuOoOh Tg5x2oyutc+3tu12DXT7wkVrQK25VPMhEybTlbvG0DUEG5Xvz/7PVVQgOzy8d82FrEWv 6jRtg/lvgav3OU/wU04qF59zrcSELaOtI71mHre1I4xsyxjcaf9jVi2ek3m16U/MIX8B HL+Lik8nDNsSlFxvZeeWvimIJLl0AxJU2Tdl0sC6H41QyDY6ZomAwa5YWyioK45kqnsk 3C8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FFkxJJ5A; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si417740edd.589.2021.02.09.18.45.24; Tue, 09 Feb 2021 18:45: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=@chromium.org header.s=google header.b=FFkxJJ5A; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234858AbhBJCov (ORCPT + 99 others); Tue, 9 Feb 2021 21:44:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235513AbhBJCmp (ORCPT ); Tue, 9 Feb 2021 21:42:45 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C327C06178A for ; Tue, 9 Feb 2021 18:40:41 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id lw17so2219504pjb.0 for ; Tue, 09 Feb 2021 18:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=6eNQGsk4HfU/BlZLIbxmLsaentzXDgONZtzHmgIk+94=; b=FFkxJJ5A38wj8D1VMPVZT1EAEfwIvO0q51FuE8nKboz6uO59YleKf4PFyWFeQ7E8fU 56rhuVXqfBFFqaWbD17lQN8GHZSkR0JejudPFLqPoIUpNeAYRUWHHT5F6phDvOuifg/k jYZdqKsDotiKWE+Aqc/oyAh2BIZfLE0vp/VRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=6eNQGsk4HfU/BlZLIbxmLsaentzXDgONZtzHmgIk+94=; b=nmjfQlyL7NAaDmnzJ1sQmxiTqcMQnkHBMgGH8i6JRXZ7zotxioF2kDWNChsTNUh4z6 qMwDFdvgCTSH8Us9OP65YPkjiUNZwekuhg7e08fi6Tm3xyRU1VSzDf4p3aCcxpp/Tk2B njumewn0JM5tPQxgbnwwGXqhCryphZtAJFN0KEo0el9po20b7MgDYyGSGoCsgIDraTgb /1clIhgIwKvRBQa/llZWNvZx/3PAoGFOAY4Kt2onQ52t2YIZyCj88Cch5whxAveDEO1u y82VWv4yILnqls7P4+QHFkZ/iACVX74cCLvZRVd+HUemJqjwR9Zp9nJHKWVF5rJfXHFI eoQA== X-Gm-Message-State: AOAM53246oOKpYnvNOngROiHXKG08YkMSgv1HJR/zevtD44kAMHResSV OQcK78M2VxKaZeWmVJ3t2/AuSa/FEdmTQA== X-Received: by 2002:a17:90a:f481:: with SMTP id bx1mr953131pjb.35.1612924841043; Tue, 09 Feb 2021 18:40:41 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:58e2:748e:a316:9823]) by smtp.gmail.com with ESMTPSA id s23sm262214pgj.29.2021.02.09.18.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 18:40:40 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <161266809977.76967.12637197400196121672@swboyd.mtv.corp.google.com> References: <20210202184434.42644-1-swboyd@chromium.org> <20210202184434.42644-4-swboyd@chromium.org> <20210206161711.6f555434@archlinux> <161266809977.76967.12637197400196121672@swboyd.mtv.corp.google.com> Subject: Re: [PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou , Enric Balletbo i Serra To: Jonathan Cameron Date: Tue, 09 Feb 2021 18:40:37 -0800 Message-ID: <161292483736.418021.16202438322972245028@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2021-02-06 19:21:39) > Quoting Jonathan Cameron (2021-02-06 08:17:11) > > On Tue, 2 Feb 2021 10:44:34 -0800 > > Stephen Boyd wrote: > >=20 > > > +static struct platform_driver cros_ec_mkbp_proximity_driver =3D { > > > + .driver =3D { > > > + .name =3D "cros-ec-mkbp-proximity", > > > + .of_match_table =3D of_match_ptr(cros_ec_mkbp_proximity= _of_match), > > I'm going to assume we know no one is going to use this with > > ACPI via PRP0001 given presumably the firmware on these devices > > is tightly controlled. >=20 > Correct. >=20 > >=20 > > However, we should should still drop the of_match_ptr > > as it will lead to an unused warning for cros_ec_mkbp_proximity_of_match > > if anyone builds this without CONFIG_OF + it sets a general bad > > precedence that I'd rather wasn't around for people to copy. > > Note that in general we are slowly ripping these out of IIO but > > probably lots still there. > >=20 > > If this is all that is needed in this version I'll just do it > > whilst applying unless anyone shouts. > >=20 >=20 > Agreed. Thanks for fixing that last little bit. Seems Rob wanted a small tweak to the binding so I'll resend this now and drop the of_match_ptr() usage.