From: Angus Ainslie <angus@akkea.ca>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de,
tomas@novotny.cz, linux-iio@vger.kernel.org,
kernel@pengutronix.de
Subject: Re: [PATCH 1/2] iio: light: fix vcnl4000 devicetree hooks
Date: Wed, 18 Sep 2019 07:46:56 -0700 [thread overview]
Message-ID: <2eb045ee57319a3c1981adf90df80325@akkea.ca> (raw)
In-Reply-To: <20190917145637.22605-1-m.felsch@pengutronix.de>
On 2019-09-17 07:56, Marco Felsch wrote:
> Since commit ebd457d55911 ("iio: light: vcnl4000 add devicetree hooks")
> the of_match_table is supported but the data shouldn't be a string.
> Instead it shall be one of 'enum vcnl4000_device_ids'. Also the
> matching
> logic for the vcnl4020 was wrong. Since the data retrieve mechanism is
> still based on the i2c_device_id no failures did appeared till now.
>
> Fixes: ebd457d55911 ("iio: light: vcnl4000 add devicetree hooks")
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Angus Ainslie (Purism) angus@akkea.ca
> ---
> drivers/iio/light/vcnl4000.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/iio/light/vcnl4000.c
> b/drivers/iio/light/vcnl4000.c
> index 51421ac32517..f522cb863e8c 100644
> --- a/drivers/iio/light/vcnl4000.c
> +++ b/drivers/iio/light/vcnl4000.c
> @@ -398,19 +398,19 @@ static int vcnl4000_probe(struct i2c_client
> *client,
> static const struct of_device_id vcnl_4000_of_match[] = {
> {
> .compatible = "vishay,vcnl4000",
> - .data = "VCNL4000",
> + .data = (void *)VCNL4000,
> },
> {
> .compatible = "vishay,vcnl4010",
> - .data = "VCNL4010",
> + .data = (void *)VCNL4010,
> },
> {
> - .compatible = "vishay,vcnl4010",
> - .data = "VCNL4020",
> + .compatible = "vishay,vcnl4020",
> + .data = (void *)VCNL4010,
> },
> {
> .compatible = "vishay,vcnl4200",
> - .data = "VCNL4200",
> + .data = (void *)VCNL4200,
> },
> {},
> };
next prev parent reply other threads:[~2019-09-18 14:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-17 14:56 [PATCH 1/2] iio: light: fix vcnl4000 devicetree hooks Marco Felsch
2019-09-17 14:56 ` [PATCH 2/2] iio: light: add missing vcnl4040 of_compatible Marco Felsch
2019-09-18 14:47 ` Angus Ainslie
2019-10-05 12:30 ` Jonathan Cameron
2019-09-18 14:46 ` Angus Ainslie [this message]
2019-10-05 12:27 ` [PATCH 1/2] iio: light: fix vcnl4000 devicetree hooks 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=2eb045ee57319a3c1981adf90df80325@akkea.ca \
--to=angus@akkea.ca \
--cc=jic23@kernel.org \
--cc=kernel@pengutronix.de \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=tomas@novotny.cz \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.