All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: JuenKit Yip <hunterteaegg@126.com>,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	jdelvare@suse.com, linux@roeck-us.net,
	peteryin.openbmc@gmail.com, noahwang.wang@outlook.com,
	festevam@gmail.com, marex@denx.de, lukas@wunner.de,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hwmon@vger.kernel.org
Subject: Re: [PATCH 1/2] hwmon: (sht3x) add devicetree support
Date: Tue, 19 Nov 2024 15:13:26 +0100	[thread overview]
Message-ID: <419a5d2c-7d00-41c7-b787-c824b13dcce3@kernel.org> (raw)
In-Reply-To: <20241119140725.75297-1-hunterteaegg@126.com>

On 19/11/2024 15:07, JuenKit Yip wrote:
> add "compatible" property for supporting devicetree
> 
> Signed-off-by: JuenKit Yip <hunterteaegg@126.com>
> ---
>  drivers/hwmon/sht3x.c | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
> index 650b0bcc2359..2ac1537b3e3e 100644
> --- a/drivers/hwmon/sht3x.c
> +++ b/drivers/hwmon/sht3x.c
> @@ -954,6 +954,19 @@ static int sht3x_probe(struct i2c_client *client)
>  	return PTR_ERR_OR_ZERO(hwmon_dev);
>  }
>  
> +/* devicetree ID table */
> +static const struct of_device_id sht3x_of_match[] = {
> +	{ .compatible = "sensirion,sht30", .data = (void *)sht3x },
This does not match your binding at all. Also all SHT/STS devices are
compatible, so express it in the binding with a fallback.

Anyway, you cannot just send half of patch afterwards without resolving
previous comments. If this is v2, mark it as v2. If this is a resend,
mark it as RESEND.

See other examples on mailing lists (lore.kernel.org) and read
submitting patches document.

Best regards,
Krzysztof

  parent reply	other threads:[~2024-11-19 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 14:07 [PATCH 1/2] hwmon: (sht3x) add devicetree support JuenKit Yip
2024-11-19 14:07 ` [PATCH 2/2] dt-bindings: trivial-devices: add sensirion,sht3x JuenKit Yip
2024-11-19 14:28   ` Krzysztof Kozlowski
2024-11-19 14:13 ` Krzysztof Kozlowski [this message]
2024-11-19 14:48 ` [PATCH 1/2] hwmon: (sht3x) add devicetree support Guenter Roeck
  -- strict thread matches above, loose matches on Subject: below --
2024-11-19 10:04 JuenKit Yip
2024-11-19  9:18 JuenKit Yip

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=419a5d2c-7d00-41c7-b787-c824b13dcce3@kernel.org \
    --to=krzk@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=hunterteaegg@126.com \
    --cc=jdelvare@suse.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lukas@wunner.de \
    --cc=marex@denx.de \
    --cc=noahwang.wang@outlook.com \
    --cc=peteryin.openbmc@gmail.com \
    --cc=robh@kernel.org \
    /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.