diff options
| author | H Hartley Sweeten <[email protected]> | 2016-04-08 12:41:44 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-04-28 22:16:10 -0700 |
| commit | 5068827a7818cb54763975a34a0e59f1d1827ad8 (patch) | |
| tree | c5f398dadf063704f12b49d4d8827b94d8ab3189 /tools/perf/scripts/python | |
| parent | 8114b5ecb8dc9d2b79b9cba12c4edb737da80575 (diff) | |
staging: comedi: das1800: refactor 'range_ai' boardinfo
The boards supported by this driver have analog inputs with gains
of 1, 10, 50, and 250 ("01" type) or 1, 2, 4, and 8 ("02" type).
Unfortunately, the "01"/"02" type cannot be determined from the
boards id or by probing.
Replace the 'range_ai' member of the boardinfo with a bit-field flag,
'is_01_series' and only set it for the "01" type boards. Remove the
unnecessary initialization for the "02" type boards.
For aesthetics, rename the comedi_lrange arrays and document the gain.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions