]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: xilinx: check return value of xadc_write_adc_reg
authorAditya Pakki <pakki001@umn.edu>
Thu, 27 Dec 2018 19:54:52 +0000 (13:54 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Jan 2019 16:44:02 +0000 (16:44 +0000)
commit7fc93f3285b17f4632694efce5ff0160303388a8
treefc34f22be0fa8614ef88cd758a2b84903890663e
parentb002bf5f8dbca8465b1dadb283154e844c61d73f
iio: adc: xilinx: check return value of xadc_write_adc_reg

In function xadc_probe, xadc_write_adc_reg can return an error value
when write fails. The fix checks for the return value consistent with
other invocations of the latter function.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c