From: Luca Weiss <luca@z3ntu.xyz> To: linux-iio@vger.kernel.org Cc: Jonathan Cameron <jic23@kernel.org>, Hartmut Knaack <knaack.h@gmx.de>, Lars-Peter Clausen <lars@metafoo.de>, Peter Meerwald-Stadler <pmeerw@pmeerw.net>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Luca Weiss <luca@z3ntu.xyz>, Maxime Ripard <maxime.ripard@bootlin.com>, Mauro Carvalho Chehab <mchehab+samsung@kernel.org>, Hans Verkuil <hverkuil-cisco@xs4all.nl>, Fabrizio Castro <fabrizio.castro@bp.renesas.com>, "Angus Ainslie (Purism)" <angus@akkea.ca>, Vivek Unune <npcomplete13@gmail.com>, Hannes Schmelzer <hannes.schmelzer@br-automation.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de>, Allison Randal <allison@lohutok.net>, Martijn Braam <martijn@brixit.nl>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~martijnbraam/pmos-upstream@lists.sr.ht, Kate Stewart <kstewart@linuxfoundation.org> Subject: [PATCH 3/3] iio: light: stk3310: Add device tree support Date: Wed, 3 Jul 2019 20:05:59 +0200 Message-ID: <20190703180604.9840-3-luca@z3ntu.xyz> (raw) In-Reply-To: <20190703180604.9840-1-luca@z3ntu.xyz> Add device tree support for the stk33xx family of ambient light sensors. Tested-by: Martijn Braam <martijn@brixit.nl> Signed-off-by: Luca Weiss <luca@z3ntu.xyz> --- drivers/iio/light/stk3310.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index b955183edfe8..185c24a75ae6 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c @@ -679,9 +679,18 @@ static const struct acpi_device_id stk3310_acpi_id[] = { MODULE_DEVICE_TABLE(acpi, stk3310_acpi_id); +static const struct of_device_id stk3310_of_match[] = { + { .compatible = "sensortek,stk3310", }, + { .compatible = "sensortek,stk3311", }, + { .compatible = "sensortek,stk3335", }, + {} +}; +MODULE_DEVICE_TABLE(of, stk3310_of_match); + static struct i2c_driver stk3310_driver = { .driver = { .name = "stk3310", + .of_match_table = stk3310_of_match, .pm = STK3310_PM_OPS, .acpi_match_table = ACPI_PTR(stk3310_acpi_id), }, -- 2.22.0
next prev parent reply index Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-07-03 18:05 [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Luca Weiss 2019-07-03 18:05 ` [PATCH 2/3] dt-bindings: iio: light: add stk33xx Luca Weiss 2019-07-05 16:23 ` Rob Herring 2019-07-14 15:21 ` Jonathan Cameron 2019-07-03 18:05 ` Luca Weiss [this message] 2019-07-14 15:23 ` [PATCH 3/3] iio: light: stk3310: Add device tree support Jonathan Cameron 2019-07-14 15:22 ` [PATCH 1/3] dt-bindings: Add vendor prefix for sensortek Jonathan Cameron
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190703180604.9840-3-luca@z3ntu.xyz \ --to=luca@z3ntu.xyz \ --cc=allison@lohutok.net \ --cc=angus@akkea.ca \ --cc=devicetree@vger.kernel.org \ --cc=fabrizio.castro@bp.renesas.com \ --cc=gregkh@linuxfoundation.org \ --cc=hannes.schmelzer@br-automation.com \ --cc=hverkuil-cisco@xs4all.nl \ --cc=jic23@kernel.org \ --cc=knaack.h@gmx.de \ --cc=kstewart@linuxfoundation.org \ --cc=lars@metafoo.de \ --cc=linux-iio@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=martijn@brixit.nl \ --cc=maxime.ripard@bootlin.com \ --cc=mchehab+samsung@kernel.org \ --cc=npcomplete13@gmail.com \ --cc=pmeerw@pmeerw.net \ --cc=robh+dt@kernel.org \ --cc=tglx@linutronix.de \ --cc=~martijnbraam/pmos-upstream@lists.sr.ht \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
LKML Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \ linux-kernel@vger.kernel.org public-inbox-index lkml Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git