iio:dac:ad5686: Add support for various number of channels
authorStefan Popa <stefan.popa@analog.com>
Wed, 11 Apr 2018 11:52:31 +0000 (14:52 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Apr 2018 18:15:54 +0000 (19:15 +0100)
commitf4a27306d48d39a2084ed25a9e3d2bb0833562fd
tree3eeea343b020795492a6217a19c270575c071952
parent16a3c17575c41d8f2e8406e89b9f3ba1eaabea19
iio:dac:ad5686: Add support for various number of channels

This patch adds a new num_channels attribute as part of the
ad5686_chip_info struct which replaces the AD5686_DAC_CHANNELS define. This
is a necessary step, since this driver should support similar devices which
differ only in the number of channels.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5686.c