[RESEND PATCH 0/2] Enhance dt support and channel creation

2019-05-18 Thread Bárbara Fernandes
This series of patches set a struct of_device_id with all the devices this driver is able to manage and also add a macro to facilitate channel creation for its two capacitance channels. Bárbara Fernandes (2): staging: iio: cdc: ad7150: create of_device_id array staging: iio: cdc: ad7150

[PATCH 1/2] staging: iio: cdc: ad7150: create of_device_id array

2019-05-18 Thread Bárbara Fernandes
Create structure of type of_device_id in order to register all devices the driver is able to manage. Signed-off-by: Bárbara Fernandes Signed-off-by: Melissa Wen Co-developed-by: Melissa Wen Signed-off-by: Wilson Sales Co-developed-by: Wilson Sales --- drivers/staging/iio/cdc/ad7150.c | 10

[PATCH 2/2] staging: iio: cdc: ad7150: create macro for capacitance channels

2019-05-18 Thread Bárbara Fernandes
Create macro for capacitance channels in order to remove the repeated code and improve its readability. Signed-off-by: Bárbara Fernandes Signed-off-by: Wilson Sales Co-developed-by: Wilson Sales --- drivers/staging/iio/cdc/ad7150.c | 29 - 1 file changed, 12

[RESEND PATCH] staging: iio: adt7316: create of_device_id array

2019-05-18 Thread Bárbara Fernandes
Create structure of type of_device_id in order to register all devices the driver is able to manage. Signed-off-by: Bárbara Fernandes Signed-off-by: Wilson Sales Co-developed-by: Wilson Sales --- drivers/staging/iio/addac/adt7316-spi.c | 13 + 1 file changed, 13 insertions

[RESEND PATCH] staging: iio: ad7192: create of_device_id array

2019-05-18 Thread Bárbara Fernandes
Create list of compatible device ids to be matched with those stated in the device tree. Signed-off-by: Bárbara Fernandes Signed-off-by: Wilson Sales Co-developed by: Wilson Sales --- drivers/staging/iio/adc/ad7192.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers

[PATCH v2] staging: iio: ad7192: create of_device_id array

2019-06-28 Thread Bárbara Fernandes
Create list of compatible device ids to be matched with those stated in the device tree. Signed-off-by: Bárbara Fernandes Signed-off-by: Wilson Sales Co-developed by: Wilson Sales --- drivers/staging/iio/adc/ad7192.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers

[PATCH 0/4] Solve checkstyle problems

2019-02-22 Thread Bárbara Fernandes
Solve checkpath.pl's CHECK messages: Bárbara Fernandes (4): iio:adc:ad7923: Align broken line to parenthesis iio:adc:ad7923: Use BIT macro instead of bitshift iio:adc:ad7923: Put macro argument between ()'s iio:adc:ad7923: Rewrite comparison to NULL drivers/iio/adc/ad7

[PATCH 4/4] iio:adc:ad7923: Rewrite comparison to NULL

2019-02-22 Thread Bárbara Fernandes
Solves checkpath.pl's message: CHECK: Comparison to NULL could be written "!indio_dev" Signed-off-by: Bárbara Fernandes --- drivers/iio/adc/ad7923.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c ind

[PATCH 3/4] iio:adc:ad7923: Put macro argument between ()'s

2019-02-22 Thread Bárbara Fernandes
' to avoid precedence issues CHECK: Macro argument 'dec' may be better as '(dec)' to avoid precedence issues CHECK: Macro argument 'bits' may be better as '(bits)' to avoid precedence issues Signed-off-by: Bárbara Fernandes --- drivers/iio/adc/ad7923.c |

[PATCH 1/4] iio:adc:ad7923: Align broken line to parenthesis

2019-02-22 Thread Bárbara Fernandes
Get broken line aligned with parenthesis on upper line. Solves checkpatch.pl's message: CHECK: Alignment should match open parenthesis Signed-off-by: Bárbara Fernandes --- drivers/iio/adc/ad7923.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/a

[PATCH 2/4] iio:adc:ad7923: Use BIT macro instead of bitshift

2019-02-22 Thread Bárbara Fernandes
Replace use of the operation '<<' by the BIT macro. Solves checkpath.pl's message: CHECK: Prefer using the BIT macro Signed-off-by: Bárbara Fernandes --- drivers/iio/adc/ad7923.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/a