diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2018-05-21 09:40:05 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-05-22 20:13:45 +0300 |
commit | 2636d005758928c2884ac610589f383c73919bcf (patch) | |
tree | 7326f2112232daeb0235f1453b0c4247c6af32b8 /drivers/iio/adc/ad7887.c | |
parent | 55dda0abcf9d36bf5c3e21c8423b7c00a1125e27 (diff) | |
download | linux-2636d005758928c2884ac610589f383c73919bcf.tar.xz |
iio: amplifiers: ad8366: move channel init before iio_device_register()
Otherwise a race condition can occur, where userspace can start operations
before the channels have been properly initialized.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ad7887.c')
0 files changed, 0 insertions, 0 deletions