diff options
author | Lukas Wunner <lukas@wunner.de> | 2017-10-17 12:42:00 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-10-21 21:36:45 +0200 |
commit | f98677cf315e61403aefef72b056c643dd152c54 (patch) | |
tree | 628e8ff9ccccba7d410471b6d2b54187323fbda8 /drivers/ssb | |
parent | iio: dac: Add Texas Instruments 8/10/12-bit 2/4-channel DAC driver (diff) | |
download | linux-f98677cf315e61403aefef72b056c643dd152c54.tar.xz linux-f98677cf315e61403aefef72b056c643dd152c54.zip |
iio: dac: ti-dac082s085: Read chip spec from device table
The two properties unique to each supported chip, resolution and number
of channels, are currently gleaned from the chip's name.
E.g. dac102s085 is a dual channel 10-bit DAC.
^^^
This was deemed unmaintainable by the subsystem maintainer once the
driver is extended to support further chips, hence it was requested
to add an explicit table for chip-specific information and use an
enum to reference into it.
This adds 17 LoC without any immediate gain, so make the change in a
separate commit which can be reverted if we determine in 10 years that
it was unnecessary.
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions