Re: [PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-31 Thread Jonathan Cameron
On 31 January 2017 07:19:16 GMT+00:00, Peter Meerwald-Stadler wrote: > >> > + indio_dev->num_channels = ARRAY_SIZE(srf04_chan_spec); >> > + >> > + return iio_device_register(indio_dev); >> > +} >> > + >> > +static int srf04_remove(struct platform_device *pdev) >> > +{ >> > + struct iio_dev *

Re: [PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-30 Thread Peter Meerwald-Stadler
> > + indio_dev->num_channels = ARRAY_SIZE(srf04_chan_spec); > > + > > + return iio_device_register(indio_dev); > > +} > > + > > +static int srf04_remove(struct platform_device *pdev) > > +{ > > + struct iio_dev *indio_dev = platform_get_drvdata(pdev); > > + > > + iio_device_unregister(ind

Re: [PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-30 Thread Jonathan Cameron
On 30/01/17 12:51, Andreas Klinger wrote: > This patch adds support for the ultrasonic ranger srf04 of devantech. > > This device is measuring the distance of objects in a range between 1 cm > and 3 meters and a theoretical resolution of 3 mm. > > There are two GPIOs used: > - trigger: set as o

[PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-30 Thread Andreas Klinger
This patch adds support for the ultrasonic ranger srf04 of devantech. This device is measuring the distance of objects in a range between 1 cm and 3 meters and a theoretical resolution of 3 mm. There are two GPIOs used: - trigger: set as output to the device when the measurement should start