summaryrefslogtreecommitdiff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2017-10-17 13:42:00 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-21 22:36:45 +0300
commitf98677cf315e61403aefef72b056c643dd152c54 (patch)
tree628e8ff9ccccba7d410471b6d2b54187323fbda8 /drivers/iio/adc
parent61011264c1afd8c075fb9028ccc78e7f2e63ce48 (diff)
downloadlinux-f98677cf315e61403aefef72b056c643dd152c54.tar.xz
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/iio/adc')
0 files changed, 0 insertions, 0 deletions