Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6931177imb; Sat, 9 Mar 2019 10:17:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzgrdXFOrZIS7hhdCfJkeVzmc71MvQ8Ju6zxkgANEyG40W+BqliEDMXRZj2diCCj8TV1Glb X-Received: by 2002:a17:902:784c:: with SMTP id e12mr25051974pln.117.1552155471941; Sat, 09 Mar 2019 10:17:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552155471; cv=none; d=google.com; s=arc-20160816; b=aij1bC9cIdI0EfJmdX94DkUVv7Iq/o7krD8iEu2dZTdH+/y1c9m+mu1QwtvZy0yRaV SrVAOusyHlwn5+dSOEiOgdpjWbIAAWvpOAop2PmZdk05ogVbxbVy8bcrqYBZZvS7RwSD nlvAW4nLlMi7TSlUj3vrkw6ubKKm3tUrGpfCGV+5t2Sf0dWAS95acnCtrWuCZUGX3Ikh YX8Z0w5O57n50yFBefnAR0mUt16/MqIC1ypZqSknj1jlrzynubaisX77ubhuAB3ghUbw 2sQEsnesIvJZBhH6PKxgX/kGCc7YcPPrkxZsZftLby/nBAroNo45TtTCldCjfIpfTPMn RaDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o8ywXwlucVvhZN6PgEsZ0Rlmpc0acjtO6TVaceaRBNs=; b=0bJCoF4TsNRLyu5GxlbQ9PH/bWSGfhwJ6nT/aHct5SQxo6kq4xuV7y2G8vmeQhuORW de2hpK2mdjhxpllLJVK2dX4arrm3lGSax6jMDvbb6ePHlD2JgB2dZg7RzXgakUvACmuK fMKgqU+e4/81LFEGMxiyzU7/LdNBmy0oPG/6BNoeGTvCwEiS0sELx3uRrb+P4hjDV09G F9cFKpHZ5aKTR29OnyPf754UDSefuwkaZXfOIjf0TrNW9nwqoQkIYiqKM3u3cmOAuP/G 2OVvlR9E0tY9RJidGeRyTEOvbd9aYOqgC+mn3XGzYmZxlcGirYSxDIgUAPQiAvt0I9TW MDKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWcgmXsr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y18si985628pgf.247.2019.03.09.10.17.36; Sat, 09 Mar 2019 10:17:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWcgmXsr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726512AbfCISQz (ORCPT + 99 others); Sat, 9 Mar 2019 13:16:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:42122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbfCISQz (ORCPT ); Sat, 9 Mar 2019 13:16:55 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 49B52206DF; Sat, 9 Mar 2019 18:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552155414; bh=wg4B8WczmM1LQB4wVY05qmDc4v+aN9CL3r6Gic+SD7Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qWcgmXsr7Vsqmuev06onPcdpokRe3u7fMw/XWUTOGnigGLmeBP05rTBu3dlMheUpQ h0WsTH51Z2zeUH/dWGr3t7PL+PZbD6H0yyNJgLGKa5OC6Q8YXpZFVlKMq9h+6PGyqy eX1Xa16ryhqNkM8GOtAlrEqOHFLPARS6VrAHgRaI= Date: Sat, 9 Mar 2019 18:16:49 +0000 From: Jonathan Cameron To: Robert Yang Cc: Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] iio: accel: kxcjk1013: Add device tree support Message-ID: <20190309181649.228507de@archlinux> In-Reply-To: <20190304151912.11485-4-decatf@gmail.com> References: <20190304151912.11485-1-decatf@gmail.com> <20190304151912.11485-4-decatf@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Mar 2019 10:19:12 -0500 Robert Yang wrote: > Add device tree support for kxcjk-1013 accelerometer sensors. > > Signed-off-by: Robert Yang One comment below. Applied with that minor tweak to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/accel/kxcjk-1013.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c > index 7096e577b23f..e4cbc443e6ed 100644 > --- a/drivers/iio/accel/kxcjk-1013.c > +++ b/drivers/iio/accel/kxcjk-1013.c > @@ -1510,10 +1510,20 @@ static const struct i2c_device_id kxcjk1013_id[] = { > > MODULE_DEVICE_TABLE(i2c, kxcjk1013_id); > > +static const struct of_device_id kxcjk1013_of_match[] = { > + { .compatible = "kionix,kxcjk1013", }, > + { .compatible = "kionix,kxcj91008", }, > + { .compatible = "kionix,kxtj21009", }, > + { .compatible = "kionix,kxtf9", }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, kxcjk1013_of_match); > + > static struct i2c_driver kxcjk1013_driver = { > .driver = { > .name = KXCJK1013_DRV_NAME, > .acpi_match_table = ACPI_PTR(kx_acpi_match), > + .of_match_table = of_match_ptr(kxcjk1013_of_match), Sorry. I'd missed this before, but general preference is to not use of_match_table any more because it stops people using the somewhat odd ACPI object that lets you used dt bindings via ACPI. I'll drop it. > .pm = &kxcjk1013_pm_ops, > }, > .probe = kxcjk1013_probe,