[PATCH 08/10] staging: iio: adis16203: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/staging/iio/accel/adis16203.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions

[PATCH 09/10] staging: iio: adis16240: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/staging/iio/accel/adis16240.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff

[PATCH 01/10] iio: adis16201: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/accel/adis16201.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[PATCH 04/10] iio: adis16260: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/gyro/adis16260.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a

[PATCH v2 10/10] iio: adis: Drop non Managed device functions

2020-09-15 Thread Nuno
Drop `adis_setup_buffer_and_trigger()`. All users were updated to use the devm version of this function. This avoids having almost the same code repeated. Signed-off-by: Nuno Sá --- Changes in v2: * Nothing changed. drivers/iio/imu/adis_buffer.c | 64

[PATCH v2 09/10] staging: iio: adis16240: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 03/10] iio: adis16136: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 04/10] iio: adis16260: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 08/10] staging: iio: adis16203: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 05/10] iio: adis16400: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 07/10] iio: adis16480: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 06/10] iio: adis16460: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 02/10] iio: adis16209: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 01/10] iio: adis16201: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Since we are here, drop the `.remove` callback by further using devm functions. Signed-off-by: Nuno Sá --- Changes in v2: * Further use

[PATCH v2 00/10] Use ADIS devm functions for trigger/buffer setup

2020-09-15 Thread Nuno
This series updates all users of `adis_setup_buffer_and_trigger()` to use the devm version of it. The ultimate goal of the series is to drop it from the lib as stated by Jonathan in [1]. [1]: https://marc.info/?l=linux-iio&m=158326796924980&w=2 Nuno Sá (10): iio: adis16201: Use Manage

[PATCH 07/10] iio: adis16480: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/imu/adis16480.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 03/10] iio: adis16136: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/gyro/adis16136.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 06/10] iio: adis16460: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/imu/adis16460.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a

[PATCH 02/10] iio: adis16209: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/accel/adis16209.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git

[PATCH 00/10] Use ADIS devm functions for trigger/buffer setup

2020-09-15 Thread Nuno
This series updates all users of `adis_setup_buffer_and_trigger()` to use the devm version of it. The ultimate goal of the series is to drop it from the lib as stated by Jonathan in [1]. [1]: https://marc.info/?l=linux-iio&m=158326796924980&w=2 Nuno Sá (10): iio: adis16201: Use Manage

[PATCH 05/10] iio: adis16400: Use Managed device functions

2020-09-15 Thread Nuno
Use the adis managed device functions to setup the buffer and the trigger. The ultimate goal will be to completely drop the non devm version from the lib. Signed-off-by: Nuno Sá --- drivers/iio/imu/adis16400.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a

[PATCH 10/10] iio: adis: Drop non Managed device functions

2020-09-15 Thread Nuno
Drop `adis_setup_buffer_and_trigger()`. All users were updated to use the devm version of this function. This avoids having almost the same code repeated. Signed-off-by: Nuno Sá --- drivers/iio/imu/adis_buffer.c | 64 +++--- drivers/iio/imu/adis_trigger.c | 60

Re: [PATCH 2/4] iio: imu: adis: Refactor adis_initial_startup

2020-02-03 Thread Nuno
Hi Jonathan, On Sat, 2020-02-01 at 17:08 +, Jonathan Cameron wrote: > On Mon, 20 Jan 2020 16:20:49 +0200 > Alexandru Ardelean wrote: > > > From: Nuno Sá > > > > All the ADIS devices perform, at the beginning, a self test to make > > sure > > the