From: Krzysztof Kozlowski <krzk@kernel.org>
To: Zaixiang Xu <zaixiang.xu.dev@gmail.com>, linux@roeck-us.net
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30
Date: Thu, 19 Mar 2026 21:17:01 +0100 [thread overview]
Message-ID: <082fc1db-c4b6-405f-b85e-81b9afcbd8cf@kernel.org> (raw)
In-Reply-To: <1773919186-17515-4-git-send-email-zaixiang.xu.dev@gmail.com>
On 19/03/2026 12:19, Zaixiang Xu wrote:
> Add support for GXCAS GXHT30 sensor to the sht3x driver. The GXHT30 is software compatible with the Sensirion SHT3x series.
Please wrap commit message according to Linux coding style / submission
process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
>
> Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com>
> ---
> drivers/hwmon/sht3x.c | 16 +++++++++++++++-
> 1 file changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
> index 08306ccb6d0b..4e2e5671610a 100644
> --- a/drivers/hwmon/sht3x.c
> +++ b/drivers/hwmon/sht3x.c
> @@ -934,13 +934,26 @@ static const struct i2c_device_id sht3x_ids[] = {
> {"sht3x", sht3x},
> {"sts3x", sts3x},
> {"sht85", sht3x},
> + {"gxht30", sht3x},
> {}
> };
>
> MODULE_DEVICE_TABLE(i2c, sht3x_ids);
>
> +static const struct of_device_id sht3x_of_match[] = {
> + { .compatible = "sensirion,sht3x" },
> + { .compatible = "sensirion,sts3x" },
> + { .compatible = "sensirion,sht85" },
> + { .compatible = "gxcas,gxht30" },
If this does not go to trivial devices, then they all look compatible so
this should be expressed with fallback.
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, sht3x_of_match);
> +
> static struct i2c_driver sht3x_i2c_driver = {
> - .driver.name = "sht3x",
> + .driver = {
> + .name = "sht3x",
> + .of_match_table = sht3x_of_match,
> + },
> .probe = sht3x_probe,
> .id_table = sht3x_ids,
> };
> @@ -948,5 +961,6 @@ module_i2c_driver(sht3x_i2c_driver);
>
> MODULE_AUTHOR("David Frey <david.frey@sensirion.com>");
> MODULE_AUTHOR("Pascal Sachs <pascal.sachs@sensirion.com>");
> +MODULE_AUTHOR("Your Name <zaixiang.xu.dev@gmail.com>");
Your or my name?
> MODULE_DESCRIPTION("Sensirion SHT3x humidity and temperature sensor driver");
> MODULE_LICENSE("GPL");
Best regards,
Krzysztof
prev parent reply other threads:[~2026-03-19 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 11:19 [PATCH 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu
2026-03-19 11:19 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
2026-03-19 20:14 ` Krzysztof Kozlowski
2026-03-19 11:19 ` [PATCH 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 Zaixiang Xu
2026-03-19 20:15 ` Krzysztof Kozlowski
2026-03-19 11:19 ` [PATCH 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu
2026-03-19 20:17 ` Krzysztof Kozlowski [this message]
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=082fc1db-c4b6-405f-b85e-81b9afcbd8cf@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
--cc=zaixiang.xu.dev@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox