diff options
| author | Miquel Raynal <[email protected]> | 2019-10-11 16:43:43 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-10-15 21:11:03 +0100 |
| commit | 7af5257d84275c9ef696e7757b54f210b7955d46 (patch) | |
| tree | 07485fd81040dcffa71e578f23b57a7d7491b2e0 /tools/perf/scripts/python | |
| parent | db033831b4f5589f9fcbadb837614a7c4eac0308 (diff) | |
iio: adc: max1027: Prepare the introduction of different resolutions
Maxim's max1027/29/31 series returns the measured voltages with a
resolution of 10 bits. There is a very similar series, max1227/29/31
which works identically but uses a resolution of 12 bits. Prepare the
support for these chips by turning the 'depth' into a macro parameter
instead of hardcoding it everywhere. Also reorganize just a bit the
macros at the top to avoid repeating tens of lines when adding support
for a new chip.
Signed-off-by: Miquel Raynal <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions