diff options
author | Mircea Caprioru <mircea.caprioru@analog.com> | 2019-06-25 11:11:26 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-06-26 21:24:21 +0100 |
commit | 1478a388f4baaa6da4767a0d7cf82a47826b9fc0 (patch) | |
tree | 85ba5b41c620765b9f79d9aa3d956fffcf484911 /drivers/pnp/driver.c | |
parent | 0eaecea6e4878abbf1d3e8de3e4eeabc856133d4 (diff) |
iio: adc: ad7124: Shift to dynamic allocation for channel configuration
This patch changes the channel configuration member of the device
structure from a fixed size array to a dynamic allocated one with a size
equal to the number of channels specified in the device tree. This will
ensure a more flexibility for compatible devices.
Ex. ad7124-4 - can have 4 differential or 8 pseudo-differential channels
ad7124-8 - can have 8 differential or 16 pseudo-differential channels
Also the device can suspport any other combination of differential and
pseudo-differential channels base on the physical number of inputs
available.
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/pnp/driver.c')
0 files changed, 0 insertions, 0 deletions