Re: [PATCH v3 2/2] iio: humidity: am2315: add support for am2320

Andy Shevchenko <[email protected]>
Newsgroups dev.linux.lists.linux-kernel-mentees,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Fri, Aug 14, 2026 at 02:50:20PM -0300, Nicolás Antinori wrote:
> The AM2320 is fully compatible with the AM2315 sensor in terms of I2C
> communication protocol and measurement conversions.
> 
> Add the "am2320" entry to the i2c_device_id table and create
> of_device_id table.

...

> +	chip_info = i2c_get_match_data(client);
> +	if (!chip_info)
> +		return -EINVAL;

-ENODATA

...

> +static const struct of_device_id am2315_of_match[] = {
> +	{ .compatible = "aosong,am2315", .data = &am2315_chip_info },
> +	{ .compatible = "aosong,am2320", .data = &am2320_chip_info },
> +	{}

Same style as elsewhere, id est

	{ }

> +};

With the above being addressed,
Reviewed-by: Andy Shevchenko <[email protected]>

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.