mbox series

[0/2] iio: chemical: pms7003: add other supported sensors

Message ID 20190217192213.15803-1-tduszyns@gmail.com
Headers show
Series iio: chemical: pms7003: add other supported sensors | expand

Message

Tomasz Duszynski Feb. 17, 2019, 7:22 p.m. UTC
This series extends the supported sensors list with a new ones belonging
to the PMSxxyy family. All share the very same binary protocol and
are capable of measuring PM1.0, PM2.5 and PM10 dust particles.

Tomasz Duszynski (2):
  iio: chemical: pms7003: extend supported sensors list
  dt-bindings: iio: chemical: pms7003: extend supported sensors list

 .../bindings/iio/chemical/plantower,pms7003.txt           | 8 +++++++-
 drivers/iio/chemical/pms7003.c                            | 5 +++++
 2 files changed, 12 insertions(+), 1 deletion(-)

--
2.20.1

Comments

Jonathan Cameron Feb. 20, 2019, 10:52 a.m. UTC | #1
On Sun, 17 Feb 2019 20:22:12 +0100
Tomasz Duszynski <tduszyns@gmail.com> wrote:

> Add other sensors to the compatible list.
> 
> Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Applied to the togreg branch of iio.git and pushed out as
testing for the autobuilders to play with it.

Thanks,

Jonathan

> ---
>  drivers/iio/chemical/pms7003.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/iio/chemical/pms7003.c b/drivers/iio/chemical/pms7003.c
> index db8e7b2327b3..23c9ab252470 100644
> --- a/drivers/iio/chemical/pms7003.c
> +++ b/drivers/iio/chemical/pms7003.c
> @@ -321,7 +321,12 @@ static int pms7003_probe(struct serdev_device *serdev)
>  }
>  
>  static const struct of_device_id pms7003_of_match[] = {
> +	{ .compatible = "plantower,pms1003" },
> +	{ .compatible = "plantower,pms3003" },
> +	{ .compatible = "plantower,pms5003" },
> +	{ .compatible = "plantower,pms6003" },
>  	{ .compatible = "plantower,pms7003" },
> +	{ .compatible = "plantower,pmsa003" },
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(of, pms7003_of_match);