]> git.baikalelectronics.ru Git - kernel.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)
commitb3d550edf226d256178f3fadf605104423022303
treefc34f22be0fa8614ef88cd758a2b84903890663e
parent72788e13aea13af319b4e6030ac4d5ff84266c2e
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