Re: [PATCH v6 4/4] hwmon: (sht3x) Add support for GXCAS GXHT30

From: Krzysztof Kozlowski

Date: Wed Apr 29 2026 - 02:29:45 EST


On Tue, Apr 28, 2026 at 07:09:29PM +0800, Zaixiang Xu wrote:
> Add support for the GXCAS GXHT30 humidity and temperature sensor.
> The GXHT30 is software compatible with the Sensirion SHT30.
>
> Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@xxxxxxxxx>
> ---
> drivers/hwmon/sht3x.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
> index 6437568aaf73..f52114c13edb 100644
> --- a/drivers/hwmon/sht3x.c
> +++ b/drivers/hwmon/sht3x.c
> @@ -934,6 +934,7 @@ static const struct i2c_device_id sht3x_ids[] = {
> {"sht3x", sht3x},
> {"sts3x", sts3x},
> {"sht85", sht3x},
> + {"gxht30", sht3x},
> {}
> };
>
> @@ -948,6 +949,7 @@ static const struct of_device_id sht3x_of_match[] = {
> { .compatible = "sensirion,sts31", .data = (void *)(uintptr_t)sts3x },
> { .compatible = "sensirion,sts32", .data = (void *)(uintptr_t)sts3x },
> { .compatible = "sensirion,sts35", .data = (void *)(uintptr_t)sts3x },
> + { .compatible = "gxcas,gxht30", .data = (void *)(uintptr_t)sht3x },

Drop, this is completely pointless. We asked for fallbacks for a reason.

Best regards,
Krzysztof