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
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
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
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
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
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
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
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
' 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 |
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
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
11 matches
Mail list logo