Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2967696imm; Mon, 24 Sep 2018 13:10:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV62HvyKfu9fep5afdBC2pd9KYsrpixam6mfI0Vo6YS2XmDnNQeGRufPztFIHjKzcefJS5JVm X-Received: by 2002:a63:1d22:: with SMTP id d34-v6mr319272pgd.133.1537819839224; Mon, 24 Sep 2018 13:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537819839; cv=none; d=google.com; s=arc-20160816; b=YWbfJBDoH5K+D048KY1N/X9Pbfv4nvNRJYQZSHCg4asvmhGYmNkPGeQMRM6EM7YXMl PHRkohWg2+SkNXvTAy74OYIiO0lMrgN08SkZSXWf4nbk1oSzlpqaQRLuDySgret2X1Za D1t55mzau8iyQYbOIuXSqVomqjsm05tjDL5td/JtcZDRpRPYFDlFb8ghmL2HtofDG+wU vtl5Bd0lNza6LwAFWandwXnN1Ltjn7eyyjZyr9gaNNcmJObn1Xbn6tRHQ5dTUEmVFWXV l/uDeI8/+kNOG/mNrrGYHlcu6MZfCAYQZhFaOcj9+zqWWS+sxvypsji8qwGu6WQCXrfy 6ELg== 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=dtD9SBVDmmSat6W5lcqUNiiVUNbEuN00IkuFpQvOiKI=; b=qtX6FBcEJrSPLJUdJ1eCNa7IpK6hnsMGZ59JMrcQsAn+DwojvFfaOjtWa7qDXTr50I PZRf/SrUGOppMarRgsMIoeA914HbDZiYwU3wGvWu1YZ9SzrFFfWf08d1r95GkfW3t6dS GAr39+Ov+sSHXQicyJs3a5WYZNukjGdCDvtgJgbdugrnmGpSgxt2G7+PR9AS9VpEtslV ANEwjgpdPp6f+ksm9ieGMJeP76dy4RfNlLY0moiEE2356GQ0MmiV9tN9QpqbA/lLQkdN WV2DII2cRB0miJWpU4FwvaAfbGoICgWFOd+r9j7IXMtx4pNViM/E0PzP2ICkdTzkMA3O ckeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ykvAYQmY; 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 o8-v6si181245pgk.43.2018.09.24.13.10.24; Mon, 24 Sep 2018 13:10:39 -0700 (PDT) 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=ykvAYQmY; 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 S1727327AbeIYCOG (ORCPT + 99 others); Mon, 24 Sep 2018 22:14:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:52188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbeIYCOG (ORCPT ); Mon, 24 Sep 2018 22:14:06 -0400 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 245312087A; Mon, 24 Sep 2018 20:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537819811; bh=oMiC4lFmX2QH9E4CsU/MF8YpXtt4uekbd6l6/kUaxSk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ykvAYQmYduN5c6z3wr2W79GRhxuISFaFP2H98GfLYA/EiuUxiMqCI60ON6i3CAfnp KrSnoingkV4zru4miINirINSTGn0ptQUwVPSIW6/I7G5OBQD5/NS38x+xNkKHz431a sduJAaQTAId1UivMfxUpLj6AduAz+Ox0/x8PcVMA= Date: Mon, 24 Sep 2018 21:10:08 +0100 From: Jonathan Cameron To: ryang Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] iio: light: bh1750: Add device tree support Message-ID: <20180924211008.1ef7895c@archlinux> In-Reply-To: <20180922205754.6100-2-decatf@gmail.com> References: <20180922205754.6100-1-decatf@gmail.com> <20180922205754.6100-2-decatf@gmail.com> X-Mailer: Claws Mail 3.17.1 (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 Sat, 22 Sep 2018 16:57:54 -0400 ryang wrote: > Add device tree support for ROHM BH1750 series ambient light sensors. > > Signed-off-by: ryang Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > Changes in v2: > - Export module device table > Changes in v3: > - Remove of_match_ptr so that bh1750_of_match is available > without CONFIG_OF. > > drivers/iio/light/bh1750.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/iio/light/bh1750.c b/drivers/iio/light/bh1750.c > index c3a481452b67..28347df78cff 100644 > --- a/drivers/iio/light/bh1750.c > +++ b/drivers/iio/light/bh1750.c > @@ -307,9 +307,20 @@ static const struct i2c_device_id bh1750_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, bh1750_id); > > +static const struct of_device_id bh1750_of_match[] = { > + { .compatible = "rohm,bh1710", }, > + { .compatible = "rohm,bh1715", }, > + { .compatible = "rohm,bh1721", }, > + { .compatible = "rohm,bh1750", }, > + { .compatible = "rohm,bh1751", }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, bh1750_of_match); > + > static struct i2c_driver bh1750_driver = { > .driver = { > .name = "bh1750", > + .of_match_table = bh1750_of_match, > .pm = &bh1750_pm_ops, > }, > .probe = bh1750_probe,