drivers:adc:ltc2378: Add support for LTC2378-20#2794
drivers:adc:ltc2378: Add support for LTC2378-20#2794csarip wants to merge 5 commits intoanalogdevicesinc:mainfrom
Conversation
8e480e9 to
e1c00ca
Compare
|
It appears to have the same failed checks as PR #2783. Unless all checks are required to pass, this PR is ready for review. |
amiclaus
left a comment
There was a problem hiding this comment.
looks good overall, but the documentation issues ar valid. check for the warnings in the log file, those are treated as errors too.
e1c00ca to
118b0d2
Compare
118b0d2 to
9f4765c
Compare
9f4765c to
67b68ba
Compare
|
v2:
|
jemfgeronimo
left a comment
There was a problem hiding this comment.
Some changes to fix the LinuxBuilds documentation errors.
67b68ba to
36f7683
Compare
36f7683 to
850761a
Compare
|
v3:
|
jemfgeronimo
left a comment
There was a problem hiding this comment.
Some minor changes.
850761a to
71f0c5e
Compare
|
v4:
|
jemfgeronimo
left a comment
There was a problem hiding this comment.
Just a minor change. Otherwise, LGTM.
71f0c5e to
de506dc
Compare
|
v5:
|
de506dc to
98a86d9
Compare
|
v6:
|
98a86d9 to
8143216
Compare
|
v7:
|
Add initial header and source files for LTC2378 driver. Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
Add initial header and source file for LTC2378 IIO driver. Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
Add README.rst documentation file for LTC2378 alongside other documentation related files. Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
Add initial project files for both basic and IIO examples for LTC2378. Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
Add README.rst documentation file for project alongside other documentation related files. Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
8143216 to
a17da2d
Compare
|
v8:
|
amiclaus
left a comment
There was a problem hiding this comment.
some more comments on my side, otherwise lgtm.
| { | ||
| struct ltc2378_dev *dev; | ||
| int ret; | ||
|
|
There was a problem hiding this comment.
missing init_param null check.
if (!device || !init_param)
return -EINVAL;
| }; | ||
|
|
||
| struct ltc2378_iio_desc_init_param { | ||
| struct ltc2378_init_param *ltc2378_init_param; |
There was a problem hiding this comment.
shouldn't this be a const struct?
| int32_t voltage_uv; | ||
|
|
||
| ret = ltc2378_read_raw(dev, &raw); | ||
| if (ret) { |
There was a problem hiding this comment.
isn't there a way to exit the while loop in case of errors. and free the resources.
|
|
||
| struct ltc2378_iio_desc { | ||
| struct ltc2378_dev *ltc2378_dev; | ||
| struct iio_device *iio_dev; |
There was a problem hiding this comment.
where does this struct come from? i don't see any relevant include.
Pull Request Description
This PR adds initial driver support for the LTC2378-20 20-bit SAR ADC with project examples.
Driver Features Implemented:
Project Examples Added:
PR Type
PR Checklist